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
Add support for BPF_PROG_TYPE_CGROUP_SOCKOPT #268
Conversation
This patch adds support for `BPF_PROG_TYPE_CGROUP_SOCKOPT`.
✅ Deploy Preview for aya-rs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
https://github.com/nak3/aya-showcase/tree/main/cgroup-sockopt is the demonstration for this PR. |
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.
You're on a roll!
Remove the copypasta but otherwise great stuff!
- Fix copy & paste - Use anyhow:Error to drop Error enum
Thank you so much! Updated. |
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.
small doc typo
aya/src/programs/cgroup_sockopt.rs
Outdated
/// A program that can be used to get or set options on sockets. | ||
/// | ||
/// [`CgroupSockopt`] programs can be attached to a cgroup and will be called every | ||
/// time a process executes getsockopt or getsockopt system call. |
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.
getsockopt or setsockopt
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.
Thank you! Updated.
This patch adds support for
BPF_PROG_TYPE_CGROUP_SOCKOPT
.close #219