Bug 1093567
| Summary: | Unable to execute docker as confined user (staff_u) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Niranjan Mallapadi Raghavender <mniranja> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.12.1-171.fc20 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-26 01:53:14 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: | |||
2ad041b4a89389d39efe06fd484a282f547e77e0 and f867f994d599fac4fae26db980f908b91505864a fix this in git. selinux-policy-3.12.1-167.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-167.fc20 Package selinux-policy-3.12.1-167.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-167.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7240/selinux-policy-3.12.1-167.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-171.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-171.fc20 Package selinux-policy-3.12.1-171.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-171.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-7499/selinux-policy-3.12.1-171.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-171.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: After installing docker and making the user member of docker group, docker command fails to run and fails with error "Permission denied" [mniranja@mniranja ~]$ docker bash: /usr/bin/docker: Permission denied [mniranja@mniranja ~]$ sudo /usr/bin/docker sesh: unable to execute /usr/bin/docker: Permission denied [mniranja@mniranja ~]$ id uid=1004(mniranja) gid=1005(mniranja) groups=1005(mniranja),984(docker),1000(groupadmin) context=staff_u:staff_r:staff_t:s0-s0:c0.c1023 [mniranja@mniranja ~]$ id -Z staff_u:staff_r:staff_t:s0-s0:c0.c1023 Version-Release number of selected component (if applicable): docker-io-0.9.1-1.fc20.x86_64 selinux-policy-3.12.1-158.fc20.noarch kernel-3.12.8-300.fc20.x86_64 Steps to Reproduce: 1. Install fedora 20 2. Confined user to staff_u 3. install docker-io 4. make the user member of docker group 5. run docker Actual results: [mniranja@mniranja ~]$ docker bash: /usr/bin/docker: Permission denied Expected results: docker should be able to run as confined user. Additional info: Below are the avc messages: type=AVC msg=audit(1399008818.339:760): avc: denied { execute } for pid=3732 comm="bash" name="docker" dev="dm-2" ino=782793 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:docker_exec_t:s0 tclass=file type=SYSCALL msg=audit(1399008818.339:760): arch=c000003e syscall=59 success=no exit=-13 a0=18608f0 a1=1860a00 a2=16f4850 a3=8 items=0 ppid=2318 pid=3732 auid=1004 uid=1004 gid=1005 euid=1004 suid=1004 fsuid=1004 egid=1005 sgid=1005 fsgid=1005 ses=1 tty=pts0 comm="bash" exe="/usr/bin/bash" subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1399008818.339:761): avc: denied { getattr } for pid=3732 comm="bash" path="/usr/bin/docker" dev="dm-2" ino=782793 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:docker_exec_t:s0 tclass=file type=SYSCALL msg=audit(1399008818.339:761): arch=c000003e syscall=4 success=no exit=-13 a0=18608f0 a1=7fff50fd3070 a2=7fff50fd3070 a3=8 items=0 ppid=2318 pid=3732 auid=1004 uid=1004 gid=1005 euid=1004 suid=1004 fsuid=1004 egid=1005 sgid=1005 fsgid=1005 ses=1 tty=pts0 comm="bash" exe="/usr/bin/bash" subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1399008818.339:762): avc: denied { getattr } for pid=3732 comm="bash" path="/usr/bin/docker" dev="dm-2" ino=782793 scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=system_u:object_r:docker_exec_t:s0 tclass=file type=SYSCALL msg=audit(1399008818.339:762): arch=c000003e syscall=4 success=no exit=-13 a0=18608f0 a1=7fff50fd3050 a2=7fff50fd3050 a3=8 items=0 ppid=2318 pid=3732 auid=1004 uid=1004 gid=1005 euid=1004 suid=1004 fsuid=1004 egid=1005 sgid=1005 fsgid=1005 ses=1 tty=pts0 comm="bash" exe="/usr/bin/bash" subj=staff_u:staff_r:staff_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1399008818.347:763): avc: denied { rlimitinh } for pid=3737 comm="setroubleshootd" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tclass=process type=AVC msg=audit(1399008818.347:763): avc: denied { siginh } for pid=3737 comm="setroubleshootd" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tclass=process type=AVC msg=audit(1399008818.347:763): avc: denied { noatsecure } for pid=3737 comm="setroubleshootd" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tclass=process type=SYSCALL msg=audit(1399008818.347:763): arch=c000003e syscall=59 success=yes exit=0 a0=7f6f63ccd810 a1=7f6f63ccd710 a2=7f6f63ccc010 a3=0 items=0 ppid=3735 pid=3737 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="setroubleshootd" exe="/usr/bin/python2.7" subj=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1399008818.528:764): avc: denied { write } for pid=3737 comm="setroubleshootd" name=".dbenv.lock" dev="dm-10" ino=129802 scontext=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=file type=SYSCALL msg=audit(1399008818.528:764): arch=c000003e syscall=2 success=no exit=-13 a0=2c377d0 a1=42 a2=1a4 a3=0 items=0 ppid=3735 pid=3737 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="setroubleshootd" exe="/usr/bin/python2.7" subj=system_u:system_r:setroubleshootd_t:s0-s0:c0.c1023 key=(null)