Bug 1258376 - getting avc denial after connecting iphone via usb ... this also prevents charging!
Summary: getting avc denial after connecting iphone via usb ... this also prevents ch...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-31 08:51 UTC by Lubos Kocman
Modified: 2015-12-20 11:04 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-20 11:04:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lubos Kocman 2015-08-31 08:51:15 UTC
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-1.8.4.4:1.0.

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

If you believe that usbmuxd should be allowed read access on the +usb:4-1.8.4.4:1.0 file 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:object_r:udev_var_run_t:s0
Target Objects                +usb:4-1.8.4.4:1.0 [ 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-1.8.4.4:1.0" 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 11:04:52 UTC
Should be already fixed.


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