Bug 547687 - SELinux is preventing ld-linux.so.2 from loading /usr/lib/libGL.so.1.2.#prelink#.kKhAwl which requires text relocation.
Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/libGL.so.1.2.#preli...
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:2bd313f8785...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-15 12:43 UTC by D.S. Ljungmark
Modified: 2009-12-15 14:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-15 14:25:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description D.S. Ljungmark 2009-12-15 12:43:42 UTC
Summary:

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

Detailed Description:

The ld-linux.so.2 application attempted to load
/usr/lib/libGL.so.1.2.#prelink#.kKhAwl 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/libGL.so.1.2.#prelink#.kKhAwl 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/libGL.so.1.2.#prelink#.kKhAwl to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/libGL.so.1.2.#prelink#.kKhAwl'" 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/libGL.so.1.2.#prelink#.kKhAwl'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/libGL.so.1.2.#prelink#.kKhAwl'

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/libGL.so.1.2.#prelink#.kKhAwl [ 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-91.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.30.9-102.fc11.i586 #1 SMP Thu Dec 3 23:46:37
                              EST 2009 i686 i686
Alert Count                   1
First Seen                    Mon 14 Dec 2009 02:27:15 PM CET
Last Seen                     Mon 14 Dec 2009 02:27:15 PM CET
Local ID                      2a3c5f0e-bc22-47b5-9a86-159358e3527b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260797235.165:27787): avc:  denied  { execmod } for  pid=5708 comm="ld-linux.so.2" path="/usr/lib/libGL.so.1.2.#prelink#.kKhAwl" dev=dm-0 ino=9461 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(1260797235.165:27787): arch=40000003 syscall=125 success=no exit=-13 a0=c5b000 a1=6b000 a2=5 a3=bfa7d0b0 items=0 ppid=5693 pid=5708 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 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-91.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-15 14:25:50 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.