Bug 1128403 - SELinux is preventing usbmuxd from 'write' accesses on the directory lib.
Summary: SELinux is preventing usbmuxd from 'write' accesses on the directory lib.
Status: CLOSED DUPLICATE of bug 1135089
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:1d74ad42a6e96a7932c866f2709...
Depends On:
TreeView+ depends on / blocked
Reported: 2014-08-10 06:09 UTC by iliketurtlesbro
Modified: 2014-09-02 08:36 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-08-29 11:04:37 UTC

Attachments (Terms of Use)

Description iliketurtlesbro 2014-08-10 06:09:17 UTC
Description of problem:
SELinux is preventing usbmuxd from 'write' accesses on the directory lib.

*****  Plugin catchall_labels (83.8 confidence) suggests   *******************

If you want to allow usbmuxd to have write access on the lib directory
Then you need to change the label on lib
# semanage fcontext -a -t FILE_TYPE 'lib'
where FILE_TYPE is one of the following: usbmuxd_var_run_t, var_run_t. 
Then execute: 
restorecon -v 'lib'

*****  Plugin catchall (17.1 confidence) suggests   **************************

If you believe that usbmuxd should be allowed write access on the lib directory 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:var_lib_t:s0
Target Objects                lib [ dir ]
Source                        usbmuxd
Source Path                   usbmuxd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           filesystem-3.2-30.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-71.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.0-1.fc22.x86_64 #1 SMP Mon
                              Aug 4 10:01:23 UTC 2014 x86_64 x86_64
Alert Count                   2
First Seen                    2014-08-10 01:33:14 EDT
Last Seen                     2014-08-10 02:02:04 EDT
Local ID                      1303fd57-e0ee-448f-bef5-edd4e23b6d90

Raw Audit Messages
type=AVC msg=audit(1407650524.765:553): avc:  denied  { write } for  pid=5080 comm="usbmuxd" name="lib" dev="dm-2" ino=1048578 scontext=system_u:system_r:usbmuxd_t:s0 tcontext=system_u:object_r:var_lib_t:s0 tclass=dir permissive=0

Hash: usbmuxd,usbmuxd_t,var_lib_t,dir,write

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.0-1.fc22.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-08-12 12:33:12 UTC
Do you know which lib directory under /var/lib that usbmuxd is trying to write to?

Comment 2 Daniel Walsh 2014-08-29 11:04:37 UTC

*** This bug has been marked as a duplicate of bug 1135089 ***

Comment 3 iliketurtlesbro 2014-09-02 08:36:33 UTC
I'm sorry, I do not know which lib directory the process was attempting to write to.

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