Bug 984161

Summary: SELinux is preventing /usr/bin/df from 'getattr' accesses on the directory /sys/fs/fuse/connections.
Product: [Fedora] Fedora Reporter: Mark <j.mark.brooks>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8e28cbdceca59622f537754077fe920219c99574a6298213af6e6cf84ffda634
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-15 14:07:11 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:

Description Mark 2013-07-13 05:54:46 UTC
Description of problem:
SELinux is preventing /usr/bin/df from 'getattr' accesses on the directory /sys/fs/fuse/connections.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/sys/fs/fuse/connections default label should be sysfs_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /sys/fs/fuse/connections

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that df should be allowed getattr access on the connections 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 df /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:rabbitmq_beam_t:s0
Target Context                system_u:object_r:fusefs_t:s0
Target Objects                /sys/fs/fuse/connections [ dir ]
Source                        df
Source Path                   /usr/bin/df
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-8.21-11.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-63.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.9-301.fc19.x86_64 #1 SMP Thu
                              Jul 4 15:10:36 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-07-13 01:50:48 EDT
Last Seen                     2013-07-13 01:50:48 EDT
Local ID                      397a6f3e-052d-4065-bccc-d9c9fbacb0e4

Raw Audit Messages
type=AVC msg=audit(1373694648.22:671): avc:  denied  { getattr } for  pid=4100 comm="df" path="/sys/fs/fuse/connections" dev="fusectl" ino=1 scontext=system_u:system_r:rabbitmq_beam_t:s0 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir


type=SYSCALL msg=audit(1373694648.22:671): arch=x86_64 syscall=stat success=no exit=EACCES a0=22c7830 a1=7fff9c476dc0 a2=7fff9c476dc0 a3=0 items=0 ppid=4098 pid=4100 auid=4294967295 uid=989 gid=988 euid=989 suid=989 fsuid=989 egid=988 sgid=988 fsgid=988 ses=4294967295 tty=(none) comm=df exe=/usr/bin/df subj=system_u:system_r:rabbitmq_beam_t:s0 key=(null)

Hash: df,rabbitmq_beam_t,fusefs_t,dir,getattr

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.9.9-301.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-07-15 14:07:11 UTC

*** This bug has been marked as a duplicate of bug 984157 ***