Bug 703969

Summary: SELinux is preventing /bin/fusermount from using the 'setuid' capabilities.
Product: [Fedora] Fedora Reporter: perezms
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:15db0f5333a03abbf0c00dc93b94e6b4f2ff7c2a7c874d70b99b817af0fccf8d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-07 19:43:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description perezms 2011-05-11 19:25:52 UTC
SELinux is preventing /bin/fusermount from using the 'setuid' capabilities.

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

If you believe that fusermount should have the setuid capability 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 fusermount /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023
Target Context                unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023
Target Objects                Unknown [ capability ]
Source                        fusermount
Source Path                   /bin/fusermount
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           fuse-2.8.5-5.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686.PAE #1 SMP
                              Tue May 3 13:29:55 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Wed 11 May 2011 12:21:55 PM PDT
Last Seen                     Wed 11 May 2011 12:21:55 PM PDT
Local ID                      28c19311-4796-4ad5-b35b-278dfd7d6b5e

Raw Audit Messages
type=AVC msg=audit(1305141715.7:939): avc:  denied  { setuid } for  pid=5386 comm="fusermount" capability=7  scontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1305141715.7:939): arch=i386 syscall=setuid32 success=yes exit=0 a0=0 a1=a39ff4 a2=0 a3=833f008 items=0 ppid=5385 pid=5386 auid=500 uid=0 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=23 comm=fusermount exe=/bin/fusermount subj=unconfined_u:system_r:abrt_helper_t:s0-s0:c0.c1023 key=(null)

Hash: fusermount,abrt_helper_t,abrt_helper_t,capability,setuid

audit2allow

#============= abrt_helper_t ==============
allow abrt_helper_t self:capability setuid;

audit2allow -R

#============= abrt_helper_t ==============
allow abrt_helper_t self:capability setuid;

Comment 1 Miroslav Grepl 2011-05-12 08:05:48 UTC
How is labeled fusermount

# ls -Z /bin/fusermount