Bug 549680 - SELinux is preventing ld-linux.so.2 from loading /usr/lib/nvidia/libGL.so.190.42.#prelink#.BKB2LV which requires text relocation.
Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/nvidia/libGL.so.190...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c09838435e2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-22 11:09 UTC by jackal_road2000
Modified: 2009-12-22 13:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-22 13:53:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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