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
WIP: set "readonly_rootfs" and "privileged" in the right places in tests #2992
Conversation
The "readonly_rootfs" and "privileged" options are part of Linux-specific security context information. Setting them anywhere else doesn't have any effect. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nalind 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 @nalind. 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 @nalind. 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 #2992 +/- ##
=======================================
Coverage 47.08% 47.08%
=======================================
Files 88 88
Lines 7155 7155
=======================================
Hits 3369 3369
Misses 3496 3496
Partials 290 290 |
/ok-to-test |
/retest |
@nalind: 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. |
@nalind @haircommander Is this still being worked on? Still something we want? |
@@ -58,6 +57,7 @@ | |||
"pid": 1 | |||
}, | |||
"readonly_rootfs": false, | |||
"privileged": true, |
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.
I think we should drop this one, and see which containers fail from not having priv
@@ -57,6 +55,8 @@ | |||
"namespace_options": { | |||
"pid": 1 | |||
}, | |||
"readonly_rootfs": true, | |||
"privileged": true, |
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.
same here, no priv needed methinks
I started a review, but thinking about it, each of these should have no privilege, with the exception of container_config_privileged.json. All the readonly_rootfs should be moved to make sure we're testing that as expected. Thanks for the patch @nalind this is very much needed. |
(btw, the ci errors are: |
I am taking this over here |
@haircommander You pointed at your self? |
lol here ** |
The
readonly_rootfs
andprivileged
options are part of Linux-specific security context information (definition). Setting them anywhere else doesn't appear to have any effect.