Skip to content
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

el7: restorecon on containerd binaries in /usr/local/bin/ does not set them to container_runtime_exec_t #22

Open
dweomer opened this issue Nov 2, 2021 · 0 comments

Comments

@dweomer
Copy link
Contributor

dweomer commented Nov 2, 2021

Because container-selinux in el7 is ancient we should add these fcontext entries:

$ restorecon -Frv /usr/local/bin # centos/7
node-1: restorecon reset /usr/local/bin/containerd-shim-runc-v1 context unconfined_u:object_r:bin_t:s0->system_u:object_r:bin_t:s0
node-1: restorecon reset /usr/local/bin/containerd-shim-runc-v2 context unconfined_u:object_r:bin_t:s0->system_u:object_r:bin_t:s0
node-1: restorecon reset /usr/local/bin/containerd-shim context unconfined_u:object_r:bin_t:s0->system_u:object_r:bin_t:s0
node-1: restorecon reset /usr/local/bin/ctr context unconfined_u:object_r:bin_t:s0->system_u:object_r:bin_t:s0
node-1: restorecon reset /usr/local/bin/containerd context unconfined_u:object_r:bin_t:s0->system_u:object_r:bin_t:s0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant