Restore default SELinux security contexts for containerd binaries#17633
Restore default SELinux security contexts for containerd binaries#17633k8s-ci-robot merged 1 commit intokubernetes:masterfrom
Conversation
|
/hold for comments |
|
|
||
| // Restore the default SELinux security contexts for the containerd and runc binaries | ||
| if b.Distribution.IsRHELFamily() && b.NodeupConfig.ContainerdConfig != nil && b.NodeupConfig.ContainerdConfig.SeLinuxEnabled { | ||
| manifest.Set("Service", "ExecStartPre", "/bin/sh -c 'restorecon -v /usr/bin/runc'") |
There was a problem hiding this comment.
At least on RHEL 9 with runc downloaded by kops:
| manifest.Set("Service", "ExecStartPre", "/bin/sh -c 'restorecon -v /usr/bin/runc'") | |
| manifest.Set("Service", "ExecStartPre", "/bin/sh -c 'restorecon -v /usr/sbin/runc'") |
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
|
/lgtm
|
|
Thanks for checking @jsafrane! 🙂 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman 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 |
Based on #9584 which was removed together with Docker support.
Alternative to #17579.
Fixes kubernetes/kubernetes#133484.
/cc @jsafrane @ameukam