Bug 1159667
| Summary: | SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | M. Edward (Ed) Borasky <znmeb> |
| Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 21 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, znmeb |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:ccc8bacd43ce5f474ac8f3f888850d9a8e7350006a7075bacc147304c24382d1 | ||
| Fixed In Version: | selinux-policy-3.13.1-99.fc21 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-03 17:15:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
44bfd7085ba42abb08eda07267e36771021eadd9 fixes this in git. Lukas could you back port to RHEL7 F20/F21. Sure, it's back ported right now. selinux-policy-3.13.1-99.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-99.fc21 selinux-policy-3.13.1-99.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: Running Docker - I'm in the 'docker' group. I typed 'docker top developerc'. It displayed the data but threw an SE Linux error (this bug). SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that ps should be allowed getattr access on the <pid> directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep ps /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:docker_t:s0 Target Context system_u:system_r:colord_t:s0 Target Objects /proc/<pid> [ dir ] Source ps Source Path ps Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-92.fc21.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.17.1-302.fc21.x86_64 #1 SMP Fri Oct 17 20:05:46 UTC 2014 x86_64 x86_64 Alert Count 1 First Seen 2014-11-02 14:49:27 PST Last Seen 2014-11-02 14:49:27 PST Local ID b612e50d-d2a8-475b-a7b7-6ee27aa28feb Raw Audit Messages type=AVC msg=audit(1414968567.446:1197): avc: denied { getattr } for pid=6831 comm="ps" path="/proc/1543" dev="proc" ino=24327 scontext=system_u:system_r:docker_t:s0 tcontext=system_u:system_r:colord_t:s0 tclass=dir permissive=1 Hash: ps,docker_t,colord_t,dir,getattr Version-Release number of selected component: selinux-policy-3.13.1-92.fc21.noarch Additional info: reporter: libreport-2.3.0 hashmarkername: setroubleshoot kernel: 3.17.1-302.fc21.x86_64 type: libreport