Bug 1477571 - SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
SELinux is preventing ps from 'getattr' accesses on the directory /proc/<pid>.
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-08-02 08:07 EDT by Dominik 'Rathann' Mierzejewski
Modified: 2017-08-02 08:07 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dominik 'Rathann' Mierzejewski 2017-08-02 08:07:09 EDT
Description of problem:
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.
allow this access for now by executing:
# ausearch -c 'ps' --raw | audit2allow -M my-ps
# semodule -X 300 -i my-ps.pp

Additional Information:
Source Context                system_u:system_r:blueman_t:s0
Target Context                unconfined_u:unconfined_r:unconfined_dbusd_t:s0-s0
Target Objects                /proc/<pid> [ dir ]
Source                        ps
Source Path                   ps
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.11-300.fc26.x86_64 #1 SMP Mon
                              Jul 17 16:32:11 UTC 2017 x86_64 x86_64
Alert Count                   2
First Seen                    2017-08-02 12:39:01 CEST
Last Seen                     2017-08-02 12:39:01 CEST
Local ID                      5587dd6b-7a3e-402c-ba62-8dd1ebc6273b

Raw Audit Messages
type=AVC msg=audit(1501670341.501:706): avc:  denied  { getattr } for  pid=10508 comm="ps" path="/proc/25261" dev="proc" ino=3677573 scontext=system_u:system_r:blueman_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_dbusd_t:s0-s0:c0.c1023 tclass=dir permissive=0

Hash: ps,blueman_t,unconfined_dbusd_t,dir,getattr

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.11-300.fc26.x86_64
type:           libreport

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