Bug 1171955

Summary: SELinux is preventing /usr/sbin/usbmuxd from using the 'setrlimit' accesses on a process.
Product: [Fedora] Fedora Reporter: elagobalus
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:196763c763de2f109d153226016f72de2ec45926e0e715ae971275e428889f18
Fixed In Version: selinux-policy-3.12.1-197.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-10 00:55:57 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 elagobalus 2014-12-09 05:18:29 UTC
Description of problem:
plugged in iphone
SELinux is preventing /usr/sbin/usbmuxd from using the 'setrlimit' accesses on a process.

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

If you believe that usbmuxd should be allowed setrlimit access on processes labeled usbmuxd_t 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 usbmuxd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:usbmuxd_t:s0
Target Context                system_u:system_r:usbmuxd_t:s0
Target Objects                 [ process ]
Source                        usbmuxd
Source Path                   /usr/sbin/usbmuxd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           usbmuxd-1.0.9-0.6.c24463e.fc20.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-193.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.17.3-200.fc20.i686+PAE #1 SMP
                              Fri Nov 14 19:59:49 UTC 2014 i686 i686
Alert Count                   2
First Seen                    2014-12-09 12:58:06 CST
Last Seen                     2014-12-09 13:17:12 CST
Local ID                      f29d00da-4f8a-42db-acde-b9f10083c4ba

Raw Audit Messages
type=AVC msg=audit(1418102232.587:28496): avc:  denied  { setrlimit } for  pid=1802 comm="usbmuxd" scontext=system_u:system_r:usbmuxd_t:s0 tcontext=system_u:system_r:usbmuxd_t:s0 tclass=process permissive=1


type=SYSCALL msg=audit(1418102232.587:28496): arch=i386 syscall=setrlimit success=yes exit=0 a0=7 a1=bfc31acc a2=4712f000 a3=4 items=0 ppid=1 pid=1802 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=usbmuxd exe=/usr/sbin/usbmuxd subj=system_u:system_r:usbmuxd_t:s0 key=(null)

Hash: usbmuxd,usbmuxd_t,usbmuxd_t,process,setrlimit

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.17.3-200.fc20.i686+PAE
type:           libreport

Comment 1 Daniel Walsh 2015-01-02 15:49:45 UTC
145afe9d9c77e566a85bed7c34167c007cfc8c98 fixes this in git.  Looks like it is in F21.

Comment 2 Lukas Vrabec 2015-01-15 15:32:08 UTC
commit b9206ea8997fa57e80c259b5a5f38c05db1f1fe2
Author: Dan Walsh <dwalsh>
Date:   Fri Sep 19 16:58:27 2014 -0400

    Additional access required by usbmuxd

Comment 3 Fedora Update System 2015-01-27 16:56:49 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 4 Fedora Update System 2015-01-30 04:41:44 UTC
Package selinux-policy-3.12.1-197.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.12.1-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-10 00:55:57 UTC
selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.