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
seccomp: change empty profile behavior #3342
Conversation
If seccomp is enabled, but the profile is empty, fall back to the default seccomp profile rather than unconfined. Signed-off-by: Ben Wood <ben@benclarkwood.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: benclarkwood The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @benclarkwood. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
Hi @benclarkwood. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## master #3342 +/- ##
=======================================
Coverage 44.53% 44.53%
=======================================
Files 94 94
Lines 7731 7731
=======================================
Hits 3443 3443
Misses 3977 3977
Partials 311 311 |
/ok-to-test Thanks for the PR! I'm unsure this works with the CRI definition but let's see 😄 |
Do you have any resource that the CRI should behave like this? |
if s.Config().Seccomp().IsDisabled() { | ||
if profile == "" { |
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.
The test in ctr_seccomp.bats
is now failing as well, I think we have to change it too.
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.
/retest |
@benclarkwood I think this might need a rebase. |
Would be great to get this fixed. |
@benclarkwood will you have time to get back to this? Or do you want help in fixing up the tests? |
based on the results of both critest runs:
it seems this is in violation of the cri. I'm not sure we can do anything here without having the cri changed |
Would this enhancement help change the CRI default? kubernetes/enhancements#1148 |
it seems to be the first step. the proposal would only declare it GA and make it a first class pod spec value. Further work and proposals would be needed to have the CRI default to a profile when none is specified |
@benclarkwood: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@benclarkwood: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
closing this, as we have #4212 now |
If seccomp is enabled, but the profile is empty, fall back to the default seccomp profile rather than unconfined.
Fix for #3079