Bug 1159667 - SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Summary: SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ccc8bacd43ce5f474ac8f3f8888...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-02 22:52 UTC by M. Edward (Ed) Borasky
Modified: 2014-12-03 17:15 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-99.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-03 17:15:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description M. Edward (Ed) Borasky 2014-11-02 22:52:56 UTC
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

Comment 1 Daniel Walsh 2014-11-03 13:14:19 UTC
44bfd7085ba42abb08eda07267e36771021eadd9 fixes this in git.


Lukas could you back port to RHEL7 F20/F21.

Comment 2 Lukas Vrabec 2014-11-03 16:43:34 UTC
Sure, it's back ported right now.

Comment 3 Fedora Update System 2014-11-21 12:24:02 UTC
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

Comment 4 Fedora Update System 2014-12-03 17:15:22 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.