-
Notifications
You must be signed in to change notification settings - Fork 381
seccomp: custom annotation to load raw bpf #578
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
Conversation
cb9cbfd to
6551493
Compare
698e586 to
9d29983
Compare
|
some initial plumbing for Podman: https://github.com/giuseppe/libpod/tree/easyseccomp |
|
Why have both a data field and a file field? |
the data file makes it easier to use with the existing container tools. Instead the file field is easier for development as I can change the BPF program and test the container just by setting an annotation. I can drop the file field though as I can live with the data field |
|
I just found having two ways to do this, confusing. |
start plumbing support for easyseccomp. Requires: containers/crun#578 Signed-off-by: Giuseppe Scrivano <[email protected]>
9d29983 to
a140be8
Compare
|
dropped the |
Add an annotation `run.oci.seccomp_bpf_data` to ignore the seccomp section in the OCI configuration file and use the specified file as the raw data to the `seccomp(SECCOMP_SET_MODE_FILTER)` syscall. Signed-off-by: Giuseppe Scrivano <[email protected]>
a140be8 to
df01709
Compare
rhatdan
left a comment
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.
LGTM
Add an annotation
run.oci.seccomp_bpf_fileto ignore the seccompsection in the OCI configuration file and use the specified file as
the raw data to the
seccomp(SECCOMP_SET_MODE_FILTER)syscall.this is how I am using the new annotation: https://www.scrivano.org/posts/2021-01-30-easyseccomp/
Signed-off-by: Giuseppe Scrivano [email protected]