Bug 1321162 - SELinux is preventing usbmuxd from 'read' accesses on the file +usb:2-1:1.0.
Summary: SELinux is preventing usbmuxd from 'read' accesses on the file +usb:2-1:1.0.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 22
Hardware: x86_64
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ae26ef4816606ea8bf00eba2466...
: 1233110 1321348 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-24 19:59 UTC by Yves Bourdic
Modified: 2016-07-19 20:25 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.13.1-128.29.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 20:25:31 UTC
Type: ---


Attachments (Terms of Use)

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.


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