Bug 1141416 - SELinux is preventing usbmuxd from using the 'chown' capabilities.
Summary: SELinux is preventing usbmuxd from using the 'chown' capabilities.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b8e57092c000388fc3dcdaf751b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-13 04:11 UTC by Mikhail
Modified: 2014-09-27 10:10 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-82.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-27 10:10:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2014-09-13 04:11:40 UTC
Description of problem:
Connect iPad ?
SELinux is preventing usbmuxd from using the 'chown' capabilities.

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

If you believe that usbmuxd should have the chown 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 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                Unknown [ capability ]
Source                        usbmuxd
Source Path                   usbmuxd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-79.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.2-301.fc21.x86_64 #1 SMP Thu
                              Sep 11 12:45:29 UTC 2014 x86_64 x86_64
Alert Count                   1
First Seen                    2014-09-13 09:53:03 YEKT
Last Seen                     2014-09-13 09:53:03 YEKT
Local ID                      b91747f2-c81c-4a59-b21b-720855a103ce

Raw Audit Messages
type=AVC msg=audit(1410580383.709:952): avc:  denied  { chown } for  pid=12885 comm="usbmuxd" capability=0  scontext=system_u:system_r:usbmuxd_t:s0 tcontext=system_u:system_r:usbmuxd_t:s0 tclass=capability permissive=0


Hash: usbmuxd,usbmuxd_t,usbmuxd_t,capability,chown

Version-Release number of selected component:
selinux-policy-3.13.1-79.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.2-301.fc21.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-09-13 10:39:58 UTC
fdad675f4b3665f67039567729456c3a8e7de08f fixes this in git.

Comment 2 Fedora Update System 2014-09-18 13:19:58 UTC
selinux-policy-3.13.1-82.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-82.fc21

Comment 3 Fedora Update System 2014-09-19 17:45:10 UTC
Package selinux-policy-3.13.1-82.fc21:
* should fix your issue,
* was pushed to the Fedora 21 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.13.1-82.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11120/selinux-policy-3.13.1-82.fc21
then log in and leave karma (feedback).

Comment 4 Jeff Bastian 2014-09-26 13:09:02 UTC
Description of problem:
I just plugged in my phone to a USB port to charge it and this SELinux alert popped up.

Version-Release number of selected component:
selinux-policy-3.13.1-79.fc21.noarch
selinux-policy-3.13.1-82.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.2-301.fc21.x86_64
type:           libreport

Comment 5 Fedora Update System 2014-09-27 10:10:05 UTC
selinux-policy-3.13.1-82.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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