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

Add support for seccomp filter flags #733

Merged
merged 1 commit into from
Feb 23, 2022

Conversation

saschagrunert
Copy link
Collaborator

@saschagrunert saschagrunert commented Feb 23, 2022

Container runtimes like crun already support the flags: containers/crun@fefabff

We now support the flags SECCOMP_FILTER_FLAG_SPEC_ALLOW, SECCOMP_FILTER_FLAG_TSYNC as well as SECCOMP_FILTER_FLAG_LOG and refactor the flag code into the filter context.

@codecov-commenter
Copy link

codecov-commenter commented Feb 23, 2022

Codecov Report

Merging #733 (d837153) into main (673d2e1) will decrease coverage by 0.09%.
The diff coverage is 37.14%.

@@            Coverage Diff             @@
##             main     #733      +/-   ##
==========================================
- Coverage   72.52%   72.43%   -0.10%     
==========================================
  Files          86       86              
  Lines       11740    11763      +23     
==========================================
+ Hits         8515     8520       +5     
- Misses       3225     3243      +18     

Cargo.lock Outdated Show resolved Hide resolved
saschagrunert added a commit to saschagrunert/common that referenced this pull request Feb 23, 2022
crun supports seccomp filter flags since containers/crun@fefabff
runc will get them with opencontainers/runc#3390
youki will get them with youki-dev/youki#733

To support them generally, we now copy the flags during the seccomp
setup, otherwise they will get lost.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Container runtimes like `crun` already support the flags:
containers/crun@fefabff

We now support the flags `SECCOMP_FILTER_FLAG_SPEC_ALLOW`,
`SECCOMP_FILTER_FLAG_TSYNC` as well as `SECCOMP_FILTER_FLAG_LOG` and
refactor the flag code into the filter context.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saschagrunert
Thanks! 💯

@utam0k utam0k merged commit ab1e6e4 into youki-dev:main Feb 23, 2022
@saschagrunert saschagrunert deleted the filter-flag-log branch February 23, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants