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

Allow container_file_t for libvirt daemons #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bogdando
Copy link

Since "contianer_share_t" became an alias for "container_ro_file_t" [0]

Allow container_file_t each time we allow container_ro_file_t for accessing libvirt FS resources by containerized libvirt daemons.

That prevents denials like:

avc: denied comm="virtlogd" path="/run/libvirt/common" scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:container_ro_file_t:s0 tclass=dir permissive=0

[0] containers/container-selinux@a02c6f0

Since "contianer_share_t" became an alias for "container_ro_file_t" [0]

Allow container_file_t each time we allow container_ro_file_t for
accessing libvirt FS resources by containerized libvirt daemons.

That prevents denials like:

avc:  denied  comm="virtlogd" path="/run/libvirt/common"
scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023
tcontext=system_u:object_r:container_ro_file_t:s0 tclass=dir permissive=0

[0] containers/container-selinux@a02c6f0

Signed-off-by: Bohdan Dobrelia <[email protected]>
@bogdando
Copy link
Author

@SeanMooney @jpichon PTAL

@bogdando
Copy link
Author

not sure if this is needed

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

Successfully merging this pull request may close these issues.

1 participant