Bug 892732 - SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the file /usr/lib64/girepository-1.0/Folks-0.6.typelib.
Summary: SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the file /...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9583115545c962dffb343ababfb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-07 17:36 UTC by jimstanev
Modified: 2013-01-07 19:18 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-07 19:18:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-01-07 17:36 UTC, jimstanev
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-01-07 17:37 UTC, jimstanev
no flags Details

Description jimstanev 2013-01-07 17:36:24 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.3.4-5.fc17.x86_64

description:
:SELinux is preventing /usr/bin/gnome-shell from 'read' accesses on the file /usr/lib64/girepository-1.0/Folks-0.6.typelib.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/usr/lib64/girepository-1.0/Folks-0.6.typelib default label should be lib_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /usr/lib64/girepository-1.0/Folks-0.6.typelib
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that gnome-shell should be allowed read access on the Folks-0.6.typelib 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 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:man_t:s0
:Target Objects                /usr/lib64/girepository-1.0/Folks-0.6.typelib [
:                              file ]
:Source                        gnome-shell
:Source Path                   /usr/bin/gnome-shell
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gnome-shell-3.4.1-6.fc17.x86_64
:Target RPM Packages           folks-0.6.9-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-5.fc17.x86_64 #1 SMP Mon May
:                              7 17:29:34 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    2013-01-07 10:47:12 EET
:Last Seen                     2013-01-07 10:47:12 EET
:Local ID                      d747afd2-adc1-4730-b19f-0df3ae61dd86
:
:Raw Audit Messages
:type=AVC msg=audit(1357548432.770:29): avc:  denied  { read } for  pid=1225 comm="gnome-shell" name="Folks-0.6.typelib" dev="dm-1" ino=171522 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1357548432.770:29): arch=x86_64 syscall=open success=no exit=EACCES a0=30dd250 a1=0 a2=0 a3=0 items=0 ppid=1142 pid=1225 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=1 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,man_t,file,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 jimstanev 2013-01-07 17:36:30 UTC
Created attachment 674187 [details]
File: type

Comment 2 jimstanev 2013-01-07 17:37:06 UTC
Created attachment 674188 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2013-01-07 19:18:26 UTC
The avc tells you want to do.  Looks like you have some mislabeled files under /usr/lib64.

# restorecon -R -v /usr/lib64

Should fix.


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