Bug 786558 - SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the None /local/usr/local/share/pixmaps.
Summary: SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the None /...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3f92bd92c376b8151da738a5aa6...
: 786559 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 18:38 UTC by Steve Kelem
Modified: 2012-02-01 19:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-01 19:51:45 UTC
Type: ---


Attachments (Terms of Use)

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. ***


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