-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Skip volume relabel for super privileged containers #5386
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
Skip volume relabel for super privileged containers #5386
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2cb85dc to
4cd7598
Compare
Codecov Report
@@ Coverage Diff @@
## main #5386 +/- ##
==========================================
- Coverage 43.73% 43.69% -0.05%
==========================================
Files 118 118
Lines 11749 11757 +8
==========================================
- Hits 5139 5137 -2
- Misses 6122 6132 +10
Partials 488 488 |
4cd7598 to
8dd72ae
Compare
|
thanks! I am wondering if we need the allowed_annotation here. If the container can access the volume regardless of it being labeled, then the behavior won't change whether we allow it or not 🤔 |
|
/retest |
|
I think the integration tests are not working as expected. |
cc3d3d9 to
39f4c4a
Compare
|
/test integration_rhel |
|
I don't think the function should take a paramater to just not relabel, just don't call it in that case. |
39f4c4a to
d59231f
Compare
|
/retest |
d59231f to
ac4f1de
Compare
|
Requires #5400 |
If a container or pod specifies the SELinux type `spc_t`, then we skip the volume relabel. Signed-off-by: Sascha Grunert <[email protected]>
ac4f1de to
13182e6
Compare
|
@saschagrunert: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/test ci/prow/e2e-gcp |
|
@haircommander: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
DetailsIn response to this:
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. |
|
/test e2e-gcp |
|
/lgtm |
What type of PR is this?
/kind feature
What this PR does / why we need it:
If a container or pod specifies the SELinux type
spc_t, then we skip the volume relabel.Which issue(s) this PR fixes:
None
Special notes for your reviewer:
cc @mrunalp
Does this PR introduce a user-facing change?