-
Notifications
You must be signed in to change notification settings - Fork 392
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
OCPBUGS-10615: debug node: Run under an unconfined SELinux context #842
Conversation
Skipping CI for Draft Pull Request. |
Looks like this is effectively requesting an unconfined pod but does not result in one:
Still running as |
Thanks for working on this! One tricky aspect is we likely want to handle older cluster versions that have an older selinux-policy where this will fail. |
One alternative flow I'd like to enable is something like typing |
Another potential idea here is to make an option for |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale I would still be interesting to do that one. I need to figure out what's blocking it. |
@travier: The In 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. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In 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. |
/reopen |
@travier: Reopened this PR. In 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: travier 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 |
Run the node debug pod under an unconfined SELinux context (unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023) to avoid issues with the `spc_t` context. Fixes: openshift#641 See also: - https://bugzilla.redhat.com/show_bug.cgi?id=1839065 - https://bugzilla.redhat.com/show_bug.cgi?id=1896369
@travier: 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. |
/retitle OCPBUGS-10615: debug node: Run under an unconfined SELinux context |
@travier: This pull request references Jira Issue OCPBUGS-10615, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
Note that I'm not sure about what the tests here exercise in functionality so I'm not sure this change is tested. |
This does not work for me but I'm not sure how to debug this:
|
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 setting unconfined_t
is not the right choice here, the container already runs privileged so it should run as spc_t
.
Yes, it runs as |
Thank you for the context! |
It seems that the cri-o/cri-o#5501 and openshift/origin#25488 summarize the issue nicely and the cri-o PR has a discussion about possible solution which cri-o/cri-o#6579 is trying to implement. This PR does not solve the issue as it is still reproducible with these changes. It seems this should be addressed on the cri-o side first. If the cri-o issue gets addressed, the suggested context looks okay to me as |
@atiratree I opened a PR for discussion a possible solution in CRI-O: cri-o/cri-o#6780 |
Setting the labels should be allowed always. The namespaces should have no effect. I don't know why looking at a share network namespace is ever a problem, but the IPC and pid would potentially cause issues with a confined container process not being able to see or work with a spc_t or unconfined_t process. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closed this PR. In 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. |
@travier: This pull request references Jira Issue OCPBUGS-10615. The bug has been updated to no longer refer to the pull request using the external bug tracker. In 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. |
Run the node debug pod under an unconfined SELinux context
(unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023) to avoid issues
with the
spc_t
context.Fixes: #641
See also: