Bug 1321162

Summary: SELinux is preventing usbmuxd from 'read' accesses on the file +usb:2-1:1.0.
Product: [Fedora] Fedora Reporter: Yves Bourdic <titaniumkeys>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 22CC: bocketb, dominick.grift, dwalsh, lvrabec, mgrepl, moshe, plautrba, thomas, willymacha13
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ae26ef4816606ea8bf00eba2466e9a893d29046277a99e85b395c1a8ba104a5a;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-128.29.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 20:25:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Yves Bourdic 2016-03-24 19:59:18 UTC
Description of problem:
SELinux is preventing usbmuxd from 'read' accesses on the file +usb:2-1:1.0.

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

If you believe that usbmuxd should be allowed read access on the +usb:2-1: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:2-1:1.0 [ file ]
Source                        usbmuxd
Source Path                   usbmuxd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.21.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.6-200.fc22.x86_64 #1 SMP Wed
                              Mar 16 22:13:40 UTC 2016 x86_64 x86_64
Alert Count                   27
First Seen                    2016-03-15 12:54:26 EDT
Last Seen                     2016-03-24 15:03:48 EDT
Local ID                      1d5a221e-a32f-4beb-b785-56a8b52c1bb6

Raw Audit Messages
type=AVC msg=audit(1458846228.586:663): avc:  denied  { read } for  pid=2066 comm="usbmuxd" name="+usb:2-1:1.0" dev="tmpfs" ino=17660 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

Version-Release number of selected component:
selinux-policy-3.13.1-128.21.fc22.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-200.fc22.x86_64
type:           libreport

Potential duplicate: bug 1233110

Comment 1 Lukas Vrabec 2016-03-29 16:02:53 UTC
*** Bug 1233110 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2016-03-29 22:33:37 UTC
*** Bug 1321348 has been marked as a duplicate of this bug. ***

Comment 3 Lukas Vrabec 2016-03-30 10:44:27 UTC
Did you have any problems with communication with some Apple device or just SELinux alert showed up?

Comment 4 Thomas Drake-Brockman 2016-04-18 07:45:58 UTC
(In reply to Lukas Vrabec from comment #3)
> Did you have any problems with communication with some Apple device or just
> SELinux alert showed up?

I've not had any trouble tethering my iPhone or accessing images from the device, even through the SELinux alert has been showing.

Comment 5 Lukas Vrabec 2016-04-18 11:35:09 UTC
Thank you for info. 
I'll create dontaudit rule for this.

Comment 6 Yves Bourdic 2016-04-22 15:43:19 UTC
Description of problem:
after .autorelabel, using iPhone tethering for Internet access

Version-Release number of selected component:
selinux-policy-3.13.1-128.21.fc22.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-201.fc22.x86_64
type:           libreport

Comment 7 bocketb 2016-07-09 07:34:43 UTC
Description of problem:
The problem occurred when trying to mount an iPhone connected via USB.

Version-Release number of selected component:
selinux-policy-3.13.1-128.28.fc22.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.13-200.fc22.x86_64
type:           libreport

Comment 8 Fedora End Of Life 2016-07-19 20:25:31 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.