Bug 888359

Summary: SELinux is preventing /usr/libexec/gvfs-afc-volume-monitor from 'getattr' accesses on the sock_file /run/usbmuxd.
Product: [Fedora] Fedora Reporter: Marcel Wysocki <maci>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0fff2f3a3273202cb4264d011b2ae1114b2b90e451b7a945c06ba8ff9af3dd61
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-11 23:14:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcel Wysocki 2012-12-18 14:50:32 UTC
Description of problem:
SELinux is preventing /usr/libexec/gvfs-afc-volume-monitor from 'getattr' accesses on the sock_file /run/usbmuxd.

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

If you believe that gvfs-afc-volume-monitor should be allowed getattr access on the usbmuxd sock_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 gvfs-afc-volume /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:usbmuxd_var_run_t:s0
Target Objects                /run/usbmuxd [ sock_file ]
Source                        gvfs-afc-volume
Source Path                   /usr/libexec/gvfs-afc-volume-monitor
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gvfs-afc-1.14.2-2.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-62.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.10-4.fc18.x86_64 #1 SMP Tue
                              Dec 11 18:01:27 UTC 2012 x86_64 x86_64
Alert Count                   5
First Seen                    2012-12-11 13:43:06 CET
Last Seen                     2012-12-18 14:42:50 CET
Local ID                      bb8d42b4-5a8a-4643-b3cd-c9691752c33c

Raw Audit Messages
type=AVC msg=audit(1355838170.868:324): avc:  denied  { getattr } for  pid=1558 comm="gvfs-afc-volume" path="/run/usbmuxd" dev="tmpfs" ino=16494 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:usbmuxd_var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1355838170.868:324): arch=x86_64 syscall=stat success=no exit=EACCES a0=3ba76046ae a1=7fe57988bca0 a2=7fe57988bca0 a3=8 items=0 ppid=1556 pid=1558 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=1 comm=gvfs-afc-volume exe=/usr/libexec/gvfs-afc-volume-monitor subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gvfs-afc-volume,xdm_t,usbmuxd_var_run_t,sock_file,getattr

audit2allow

#============= xdm_t ==============
allow xdm_t usbmuxd_var_run_t:sock_file getattr;

audit2allow -R

#============= xdm_t ==============
allow xdm_t usbmuxd_var_run_t:sock_file getattr;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.10-4.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2012-12-19 16:09:38 UTC
Fixed in selinux-policy-3.11.1-67.fc18

Comment 2 Fedora Update System 2012-12-21 10:32:11 UTC
selinux-policy-3.11.1-67.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-67.fc18

Comment 3 Fedora Update System 2012-12-21 20:02:41 UTC
Package selinux-policy-3.11.1-67.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-67.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20813/selinux-policy-3.11.1-67.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-11 23:14:24 UTC
selinux-policy-3.11.1-67.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.