Bug 1488516
Summary: | Docker run returns error 139 when docker storage is changed w/o SELinux | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Aaron Weitekamp <aweiteka> |
Component: | docker | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 26 | CC: | adimania, admiller, amurdaca, andreas.bierfert, bbaude, dwalsh, fkluknav, ichavero, jcajka, jchaloup, lsm5, marianne, miminar, nalin, vbatts |
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-05-29 12:48:13 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
Aaron Weitekamp
2017-09-05 14:56:28 UTC
What avc's are you seeing ausearch -m avc -ts recent It looks like this corresponds to the error: $ sudo ausearch -m avc -ts 09/05/2017 00:00:00 ---- time->Tue Sep 5 09:19:47 2017 type=AVC msg=audit(1504617587.260:466): avc: denied { read execute } for pid=11096 comm="bash" path="/usr/bin/bash" dev="dm-3" ino=4854937 scontext=system_u:system_r:container_t:s0:c478,c692 tcontext=system_u:object_r:home_root_t:s0 tclass=file permissive=0 ---- time->Tue Sep 5 09:27:08 2017 type=AVC msg=audit(1504618028.288:477): avc: denied { read execute } for pid=11604 comm="bash" path="/usr/bin/bash" dev="dm-3" ino=4854937 scontext=system_u:system_r:container_t:s0:c392,c983 tcontext=system_u:object_r:home_root_t:s0 tclass=file permissive=0 ---- time->Tue Sep 5 09:30:21 2017 type=AVC msg=audit(1504618221.316:489): avc: denied { read execute } for pid=11894 comm="bash" path="/usr/bin/bash" dev="dm-3" ino=4854937 scontext=system_u:system_r:container_t:s0:c306,c485 tcontext=system_u:object_r:home_root_t:s0 tclass=file permissive=0 These AVC's indicate that the labeling did not work. home_root_t is the label of /home. This indicates that the directory under overaly is labeled as home_root_t. The proper way to label the directory is semanage fcontext -a -e /var/lib/docker /home/aweiteka/docker restorecon -R -v /home/aweiteka/docker This says label all content under /home/aweiteka/docker as if it was under /var/lib/docker. The overlay directories should get labeled container_share_t. That makes sense. The purpose of this bug is that the symptom was really difficult to troubleshoot: exit code 139->SELinux denial. I don't know how common the '-g ALT_DIR' option is but logging the permissions error would be ideal. At a minimum the error and fix are now documented here, even if we close this as WONTFIX/NOTABUG. This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |