-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSM cgroup attachment type support #1041
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for aya-rs-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking it over! 🙏 Apart from formatting issues, it would be great to have an integration test for that. Can you add one?
} | ||
|
||
// LSM probes need to return an integer corresponding to the correct | ||
// policy decision. Therefore we do not simply default to a return value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is something going wrong with your code formatting. Not only here. Can you fix it with rustfmt locally?
@altugbozkurt07, this pull request is now in conflict and requires a rebase. |
Hi,
I have followed up on the work from this PR, which has been more than 2 years since the initial commit for lsm_cgroup support created,
so i basically re-implemented it so it would be using the latest aya infrastructure and we will have a single LSM program type that would support both attachment types, instead of creating a different program type for each attachment type. I thought this would make it more consistent with the relevant BPF API provided by the OS.
@vadorovsky @dave-tucker i would really appreciate your review on this, and let me know if there is anything needs to be done before merging this into upstream.
This change is