Bug 1470720 - SELinux is preventing df from 'getattr' accesses on the file /run/docker/netns/4f60d3958cb5.
SELinux is preventing df from 'getattr' accesses on the file /run/docker/netn...
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-07-13 10:08 EDT by Raman Gupta
Modified: 2017-07-13 10:08 EDT (History)
7 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 Raman Gupta 2017-07-13 10:08:45 EDT
Description of problem:
The docker daemon, and a docker container were running.
SELinux is preventing df from 'getattr' accesses on the file /run/docker/netns/4f60d3958cb5.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that df should be allowed getattr access on the 4f60d3958cb5 file 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 'df' --raw | audit2allow -M my-df
# semodule -X 300 -i my-df.pp

Additional Information:
Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:nsfs_t:s0
Target Objects                /run/docker/netns/4f60d3958cb5 [ file ]
Source                        df
Source Path                   df
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.8-200.fc25.x86_64 #1 SMP Thu
                              Jun 29 16:13:56 UTC 2017 x86_64 x86_64
Alert Count                   2
First Seen                    2017-07-13 03:36:08 EDT
Last Seen                     2017-07-13 03:36:08 EDT
Local ID                      5f159895-1279-4548-a50e-6ca360736f62

Raw Audit Messages
type=AVC msg=audit(1499931368.692:18440): avc:  denied  { getattr } for  pid=8256 comm="df" path="/run/docker/netns/4f60d3958cb5" dev="nsfs" ino=4026532951 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nsfs_t:s0 tclass=file permissive=0

Hash: df,logwatch_t,nsfs_t,file,getattr

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.11.8-200.fc25.x86_64
type:           libreport

Potential duplicate: bug 1399081

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