Bug 754582

Summary: SELinux is preventing /usr/bin/curlftpfs from using the 'sys_nice' capabilities.
Product: [Fedora] Fedora Reporter: Markus Schulze <ms>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl, ms
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:55fef80b66e914395043e56138995292aa67c3ac3ae91ac185f096bb8e890b10
Fixed In Version: selinux-policy-3.9.16-50.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-17 20:25:48 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 Markus Schulze 2011-11-16 21:50:10 UTC
SELinux is preventing /usr/bin/curlftpfs from using the 'sys_nice' capabilities.

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

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

Additional Information:
Source Context                system_u:system_r:mount_t:s0
Target Context                system_u:system_r:mount_t:s0
Target Objects                Unknown [ capability ]
Source                        curlftpfs
Source Path                   /usr/bin/curlftpfs
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           curlftpfs-0.9.2-7.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-44.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.i686 #1 SMP Tue Oct 4
                              00:51:19 UTC 2011 i686 i686
Alert Count                   2
First Seen                    Mi 16 Nov 2011 18:43:17 CET
Last Seen                     Mi 16 Nov 2011 19:59:46 CET
Local ID                      21dd7477-1b65-42c1-8455-806406ba5c7e

Raw Audit Messages
type=AVC msg=audit(1321469986.849:60): avc:  denied  { sys_nice } for  pid=7039 comm="curlftpfs" capability=23  scontext=system_u:system_r:mount_t:s0 tcontext=system_u:system_r:mount_t:s0 tclass=capability


type=AVC msg=audit(1321469986.849:60): avc:  denied  { setsched } for  pid=7039 comm="curlftpfs" scontext=system_u:system_r:mount_t:s0 tcontext=system_u:system_r:mount_t:s0 tclass=process


type=SYSCALL msg=audit(1321469986.849:60): arch=i386 syscall=sched_setscheduler success=no exit=EACCES a0=1b7f a1=0 a2=bfcb150c a3=b77d8730 items=0 ppid=7038 pid=7039 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=curlftpfs exe=/usr/bin/curlftpfs subj=system_u:system_r:mount_t:s0 key=(null)

Hash: curlftpfs,mount_t,mount_t,capability,sys_nice

audit2allow

#============= mount_t ==============
allow mount_t self:capability sys_nice;
allow mount_t self:process setsched;

audit2allow -R

#============= mount_t ==============
allow mount_t self:capability sys_nice;
allow mount_t self:process setsched;

Comment 1 Daniel Walsh 2011-11-17 21:32:00 UTC
Miroslav we should add this and back port.

633cf006ced401e3b2c6e8dc2af7f32564b585ce 

In Rawhide adds these priv.

Comment 2 Miroslav Grepl 2011-11-21 09:17:59 UTC
Fixed n selinux-policy-3.9.16-49.fc15

Comment 3 Fedora Update System 2011-12-14 13:40:17 UTC
selinux-policy-3.9.16-50.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-50.fc15

Comment 4 Fedora Update System 2011-12-14 23:30:10 UTC
Package selinux-policy-3.9.16-50.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-50.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17089/selinux-policy-3.9.16-50.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-17 20:25:48 UTC
selinux-policy-3.9.16-50.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.