Bug 549680

Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV which requires text relocation.
Product: [Fedora] Fedora Reporter: jackal_road2000
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, jackal_road2000, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c09838435e269ceaae9b433ca3f701da0c667b8b12efd94e2d268830e4444122
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-22 13:53:46 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 jackal_road2000 2009-12-22 11:09:08 UTC
Summary:

SELinux is preventing ld-linux.so.2 from loading
/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV which requires text relocation.

Detailed Description:

The ld-linux.so.2 application attempted to load
/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV which requires text relocation.
This is a potential security problem. Most libraries do not need this
permission. Libraries are sometimes coded incorrectly and request this
permission. The SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV to use relocation as a
workaround, until the library is fixed. Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV to run correctly,
you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV'" You must also change the
default file context files on the system in order to preserve them even on a
full relabel. "semanage fcontext -a -t textrel_shlib_t
'/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV'

Additional Information:

Source Context                unconfined_u:system_r:prelink_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:lib_t:s0
Target Objects                /usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV [
                              file ]
Source                        ld-linux.so.2
Source Path                   /lib/ld-2.10.1.so
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glibc-2.10.1-5
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-88.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.9-96.fc11.i686.PAE #1 SMP Tue
                              Nov 3 23:41:33 EST 2009 i686 athlon
Alert Count                   1
First Seen                    Sun 29 Nov 2009 07:34:49 PM EET
Last Seen                     Sun 29 Nov 2009 07:34:49 PM EET
Local ID                      a462ebe1-a062-4167-8e18-081010220f5b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259516089.943:49): avc:  denied  { execmod } for  pid=20049 comm="ld-linux.so.2" path="/usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV" dev=dm-0 ino=140897 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1259516089.943:49): arch=40000003 syscall=125 success=no exit=-13 a0=a6d000 a1=97000 a2=5 a3=bf85ec10 items=0 ppid=20038 pid=20049 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="ld-linux.so.2" exe="/lib/ld-2.10.1.so" subj=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-88.fc11,allow_execmod,ld-linux.so.2,prelink_t,lib_t,file,execmod
audit2allow suggests:

#============= prelink_t ==============
allow prelink_t lib_t:file execmod;

Comment 1 Daniel Walsh 2009-12-22 13:53:46 UTC

*** This bug has been marked as a duplicate of bug 538428 ***