Bug 1525921
| Summary: | Missing container_file_t context type within the container-selinux package shipped by rhel-7-server-extras-rpms | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Nicolas Nosenzo <nnosenzo> |
| Component: | Containers | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | DeShuai Ma <dma> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.6.1 | CC: | aos-bugs, dwalsh, jokerman, mmccomas, mzali, stijn+bugs, xarses+rhbz |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-02-02 17:09:08 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
Nicolas Nosenzo
2017-12-14 12:11:43 UTC
container_file_t is not defined in RHEL yet, hopefully it will be as of rhel7.5. svirt_sandbox_file_t is the equivalent. In Fedora you can use either name since they are aliased. Would have been nice if this would have been aliased in RHEL as well, as now we need ugly hacks in our Ansible playbooks to maintain compatibility with RHEL7.4 and RHEL7.5. It is aliased, you can use the old name svirt_lxc_net_t on 7.4 and 7.5. The new name container_t only works on 7.5 (In reply to Daniel Walsh from comment #4) > It is aliased, you can use the old name svirt_lxc_net_t on 7.4 and 7.5. The > new name container_t only works on 7.5 I am confused right now. This bug is about svirt_sandbox_file_t (7.4) vs container_file_t (7.5), not svirt_lxc_net_t? Sorry, container_file_t is aliased to svirt_sandbox_file_t,also. So if you use svirt_sandbox_file_t on both 7.4 and 7.5 it will work. container_file_t will only work on 7.5. Unfortunately it doesn't on 7.5: [root@tme-5238 ~]# yum list installed container-selinux Loaded plugins: product-id, search-disabled-repos, subscription-manager Installed Packages container-selinux.noarch 2:2.55-1.el7 @rhel-7-server-extras-rpms [root@tme-5238 ~]# semanage fcontext -a -t svirt_sandbox_file_t "/mnt/data/docker(/.*)?" ValueError: Type svirt_sandbox_file_t is invalid, must be a file or device type I have to second that, freshly built systems 7.5 can not set the fcontext to svrit_sandbox_file_t, they only have container_file_t, while systems that have been upgraded from 7.4 to 7.5 retain both fcontext. What is the path forward on this, it seems that we have lost backwards compatibility on new installs. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |