Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

altugbozkurt07
Copy link

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.

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4411625
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/66f5bad3089fac0008651153
😎 Deploy Preview https://deploy-preview-1041--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added aya This is about aya (userspace) aya-bpf This is about aya-bpf (kernel) aya-obj Relating to the aya-obj crate labels Sep 26, 2024
Copy link
Member

@vadorovsky vadorovsky left a 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
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aya This is about aya (userspace) aya-bpf This is about aya-bpf (kernel) aya-obj Relating to the aya-obj crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants