Red Hat Bugzilla – Bug 1538544
Update selinux-policy for virt domains for container team
Last modified: 2018-04-10 08:50:32 EDT
Currently we have to back port lots of changes to container-selinux for RHEL since the interfaces were updated in policy that has never made its way back into RHEL. Container types are defined in virt.* policy. They were defined with a bad name svirt_lxc_net_t and svirt_sandbox_file_t. They were later updated to the much more understandable container_t and container_file_t. Most documentation about SELinux in containers now refers to these new types, so it is confusing for users to have different types in RHEL/Centos then is in Fedora/Ubuntu ... Updating the virt policy would have limited effect in that new fixes added to fedora would now be in effect for Virt bugs.
This file should have been updated. cat /etc/selinux/targeted/contexts/lxc_contexts process = "system_u:system_r:svirt_lxc_net_t:s0" content = "system_u:object_r:virt_var_lib_t:s0" file = "system_u:object_r:svirt_sandbox_file_t:s0" sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0" sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0" sandbox_lxc_process = "system_u:system_r:svirt_lxc_net_t:s0"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0763