Bug 786558

Summary: SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the None /local/usr/local/share/pixmaps.
Product: [Fedora] Fedora Reporter: Steve Kelem <steve>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3f92bd92c376b8151da738a5aa6176d0f74647eb140162ab4661e97204b2578f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-01 19:51:45 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 Steve Kelem 2012-02-01 18:38:22 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.2-1.fc16.x86_64
reason:         SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the None /local/usr/local/share/pixmaps.
time:           Wed 01 Feb 2012 10:35:25 AM PST

description:
:SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the None /local/usr/local/share/pixmaps.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gnome-shell should be allowed read access on the pixmaps <Unknown> 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 gnome-shell /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:default_t:s0
:Target Objects                /local/usr/local/share/pixmaps [ None ]
:Source                        gnome-shell
:Source Path                   /usr/bin/gnome-shell
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gnome-shell-3.2.1-2.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-74.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.2-1.fc16.x86_64 #1
:                              SMP Thu Jan 26 03:21:58 UTC 2012 x86_64 x86_64
:Alert Count                   201
:First Seen                    Tue 31 Jan 2012 10:28:01 PM PST
:Last Seen                     Wed 01 Feb 2012 10:07:08 AM PST
:Local ID                      572f305e-5628-4f9e-8167-ab04e8367c28
:
:Raw Audit Messages
:type=AVC msg=audit(1328119628.961:3509): avc:  denied  { read } for  pid=24373 comm="gnome-shell" name="pixmaps" dev=sda8 ino=10119454 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:default_t:s0 tclass=dirnode=(removed) type=SYSCALL msg=audit(1328119628.961:3509): arch=c000003e syscall=257 success=no exit=-13 a0=ffffffffffffff9c a1=1dde5e0 a2=90800 a3=0 items=0 ppid=1 pid=24373 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=6 comm="gnome-shell" exe="/usr/bin/gnome-shell" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:
:Hash: gnome-shell,xdm_t,default_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Daniel Walsh 2012-02-01 19:51:45 UTC
You have a strange setup.  I would recommend you execute the following commands

# semanage fcontext -a -t usr_t /local
# semanage fcontext -a -e /local/usr /usr
# restorecon -R -v /local

Should fix your labeling and then your system will work correctly.

Comment 2 Daniel Walsh 2012-02-01 19:52:16 UTC
*** Bug 786559 has been marked as a duplicate of this bug. ***