-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Do not set selinux context for virt-launcher binary. #8933
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
Conversation
Hi @didovesei. Thanks for your PR. I'm waiting for a kubevirt 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. |
/ok-to-test |
/retest |
1 similar comment
/retest |
Signed-off-by: Yufeng Duan <55268016+didovesei@users.noreply.github.com>
/retest |
1 similar comment
/retest |
/lgtm In a follow-up we can check if we still need to relabel the tun and null devices. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rmohr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
What this PR does / why we need it:
We don't not need to set the selinux context for virt-launcher binary. Uploading the PR to test if it is actually required or not.
No matter what we set, we end up with the selinux labels for all files in the container:
$ kubectlexec -it virt-launcher-vmi-nocloud-t5pxv -- /bin/sh sh-5.1$ ls -lhZ /usr/bin/virt-launcher -r-xr-xr-x. 1 root root system_u:object_r:container_file_t:s0:c76,c631 56M Jan 1 1970 /usr/bin/virt-launcher sh-5.1$ ls -lhZ / total 4.0K dr-xr-xr-x. 2 root root system_u:object_r:container_file_t:s0:c76,c631 6 Jan 1 1970 afs lrwxrwxrwx. 1 root root system_u:object_r:container_file_t:s0:c76,c631 7 Jan 1 1970 bin -> usr/bin dr-xr-xr-x. 2 root root system_u:object_r:container_file_t:s0:c76,c631 6 Jan 1 1970 boot drwxr-xr-x. 6 root root system_u:object_r:container_file_t:s0:c76,c631 420 Dec 12 18:46 dev
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Release note: