Bug 1538544

Summary: Update selinux-policy for virt domains for container team
Product: Red Hat Enterprise Linux 7 Reporter: Daniel Walsh <dwalsh>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: jreznik, lvrabec, mgrepl, mmalik, mthacker, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-188.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 12:49:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Walsh 2018-01-25 09:24:54 UTC
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.

Comment 9 Daniel Walsh 2018-02-19 16:33:45 UTC
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"

Comment 12 errata-xmlrpc 2018-04-10 12:49:36 UTC
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