Bug 1542997
| Summary: | SELINUX_ERR generated when building docker images | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Lukas Slebodnik <lslebodn> | |
| Component: | container-selinux | Assignee: | Daniel Walsh <dwalsh> | |
| Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.5 | CC: | amurdaca, ddarrah, dwalsh, jhonce, jpazdziora, lsm5, lvrabec | |
| Target Milestone: | rc | Keywords: | Extras, Regression | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | container-selinux-2.51-1.el7 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1548144 (view as bug list) | Environment: | ||
| Last Closed: | 2018-04-11 00:03:10 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
Lukas Slebodnik
2018-02-07 14:35:50 UTC
Did anything actually break or did you just see this entrypoint SELINUX_ERR? The AVC you are reporting also seems strange, since container_t does not exist in RHEL 7 yet, only in Fedora. RHEL runs containers with svirt_lxc_net_t? Bounds checking will be removed in RHEL7.5 I am hoping. (In reply to Daniel Walsh from comment #3) > The AVC you are reporting also seems strange, since container_t does not > exist in RHEL 7 yet, only in Fedora. RHEL runs containers with > svirt_lxc_net_t? I am not sure how it is possible I can see svirt_lxc_net_t on different machine. And I also thought it is somehow related to subscription manager but I can reproduce even with fedora image [root@host ~]# > /var/log/audit/audit.log [root@host ~]# subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Unknown [root@host ~]# docker run --rm docker.io/fedora yum install -e0 -d0 -y lftp ; ausearch -m AVC,SELINUX_ERR -i ---- type=PROCTITLE msg=audit(02/07/2018 10:45:33.086:790) : proctitle=/usr/bin/python3 /usr/bin/yum install -e0 -d0 -y lftp type=SYSCALL msg=audit(02/07/2018 10:45:33.086:790) : arch=x86_64 syscall=open success=yes exit=3 a0=0x7f79993e7868 a1=O_RDONLY|O_CLOEXEC a2=0x7ffc398e9ed0 a3=0x3 items=0 ppid=25771 pid=25787 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=yum exe=/usr/bin/python3.6 subj=system_u:system_r:svirt_lxc_net_t:s0:c389,c569 key=(null) type=SELINUX_ERR msg=audit(02/07/2018 10:45:33.086:790) : op=security_compute_av reason=bounds scontext=system_u:system_r:svirt_lxc_net_t:s0:c389,c569 tcontext=system_u:object_r:cpu_online_t:s0 tclass=file perms=entrypoint Are you running a RHEL7.5 package on that machine? (In reply to Daniel Walsh from comment #6) > Are you running a RHEL7.5 package on that machine? Yes. description of ticket contains latest packages from brew. But here are packages from different machine (used in Comment 5) [root@host]# rpm -qa docker\* selinux-policy\* container-selinux | sort container-selinux-2.41-1.git126c1c0.el7.noarch docker-1.13.1-49.gitec9911e.el7.x86_64 docker-client-1.13.1-49.gitec9911e.el7.x86_64 docker-common-1.13.1-49.gitec9911e.el7.x86_64 docker-rhel-push-plugin-1.13.1-49.gitec9911e.el7.x86_64 selinux-policy-3.13.1-187.el7.noarch selinux-policy-targeted-3.13.1-187.el7.noarch (In reply to Daniel Walsh from comment #3) > The AVC you are reporting also seems strange, since container_t does not > exist in RHEL 7 yet, only in Fedora. RHEL runs containers with > svirt_lxc_net_t? That's explained by selinux-policy-3.13.1-188.el7.noarch Is there any workaround? Ok so those types are in RHEL7.5. These should not be a problem other then noice. Lukas if we have nnp_transition in RHEL7.5 we can remove the type bounds stuff. container-selinux 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:1073 |