Bug 837200 - SELinux is preventing gnome-shell from 'execmod' accesses on the file /usr/lib/nvidia/tls/libnvidia-tls.so.295.59.
SELinux is preventing gnome-shell from 'execmod' accesses on the file /usr/li...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-07-03 03:05 EDT by Markku Piiroinen
Modified: 2012-07-03 03:44 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-03 03:44:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Markku Piiroinen 2012-07-03 03:05:12 EDT
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-3.fc17.i686
time:           ti  3. heinäkuuta 2012 10.04.49

:SELinux is preventing gnome-shell from 'execmod' accesses on the file /usr/lib/nvidia/tls/libnvidia-tls.so.295.59.
:*****  Plugin allow_execmod (91.4 confidence) suggests  **********************
:If you want to allow gnome-shell to have execmod access on the libnvidia-tls.so.295.59 file
:Then you need to change the label on '/usr/lib/nvidia/tls/libnvidia-tls.so.295.59'
:# semanage fcontext -a -t textrel_shlib_t '/usr/lib/nvidia/tls/libnvidia-tls.so.295.59'
:# restorecon -v '/usr/lib/nvidia/tls/libnvidia-tls.so.295.59'
:*****  Plugin catchall (9.59 confidence) suggests  ***************************
:If you believe that gnome-shell should be allowed execmod access on the libnvidia-tls.so.295.59 file 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 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:lib_t:s0
:Target Objects                /usr/lib/nvidia/tls/libnvidia-tls.so.295.59 [ file
:                              ]
:Source                        gnome-shell
:Source Path                   gnome-shell
:Port                          <Tuntematon>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           xorg-x11-drv-nvidia-libs-295.59-1.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-134.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-3.fc17.i686 #1 SMP Tue
:                              Jun 26 21:32:03 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    ti  3. heinäkuuta 2012 09.42.10
:Last Seen                     ti  3. heinäkuuta 2012 09.42.10
:Local ID                      776d033f-eaf8-4577-8ed1-048d2b908505
:Raw Audit Messages
:type=AVC msg=audit(1341297730.778:37): avc:  denied  { execmod } for  pid=683 comm="gnome-shell" path="/usr/lib/nvidia/tls/libnvidia-tls.so.295.59" dev="sda3" ino=790640 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file
:Hash: gnome-shell,xdm_t,lib_t,file,execmod
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Miroslav Grepl 2012-07-03 03:44:52 EDT

# semanage fcontext -a -t textrel_shlib_t '/usr/lib/nvidia/tls/libnvidia-tls.so.295.59'

# restorecon -v '/usr/lib/nvidia/tls/libnvidia-tls.so.295.59'

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