Bug 1258376 - getting avc denial after connecting iphone via usb ... this also prevents charging!
getting avc denial after connecting iphone via usb ... this also prevents ch...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-08-31 04:51 EDT by Lubos Kocman
Modified: 2015-12-20 06:04 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-12-20 06:04:52 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Lubos Kocman 2015-08-31 04:51:15 EDT
Description of problem:

avc denial is being raised after iphone has been connected via usb. This also prevents charging which is pretty annoying

How reproducible:

Steps to Reproduce:
1. plug in iphone via usb to Fedora 23 alpha box

Actual results:

AVC occurs on the first connection (it will succeed on few attempts)

SELinux is preventing usbmuxd from read access on the file +usb:4-

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

If you believe that usbmuxd should be allowed read access on the +usb:4- file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
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:object_r:udev_var_run_t:s0
Target Objects                +usb:4- [ file ]
Source                        usbmuxd
Source Path                   usbmuxd
Port                          <Unknown>
Host                          dhcp-24-106.brq.redhat.com
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-144.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     dhcp-24-106.brq.redhat.com
Platform                      Linux dhcp-24-106.brq.redhat.com
                              4.2.0-0.rc6.git0.2.fc23.x86_64 #1 SMP Wed Aug 12
                              21:39:36 UTC 2015 x86_64 x86_64
Alert Count                   29
First Seen                    2015-08-31 10:42:30 CEST
Last Seen                     2015-08-31 10:42:30 CEST
Local ID                      ef8f6650-75a9-4a7a-b811-d98be6b103e8

Raw Audit Messages
type=AVC msg=audit(1441010550.346:742): avc:  denied  { read } for  pid=20602 comm="usbmuxd" name="+usb:4-" dev="tmpfs" ino=40674 scontext=system_u:system_r:usbmuxd_t:s0 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=0

Hash: usbmuxd,usbmuxd_t,udev_var_run_t,file,read
Comment 1 Miroslav Grepl 2015-12-20 06:04:52 EST
Should be already fixed.

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