Bug 562211 - SELinux is preventing ld-linux.so.2 from loading /usr/lib/libADM5avutil.so.50 which requires text relocation.
Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/libADM5avutil.so.50...
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:25c85d6ebbc...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-05 15:59 UTC by Oliver Ruebenacker
Modified: 2010-02-05 16:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-05 16:11:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Oliver Ruebenacker 2010-02-05 15:59:31 UTC
Summary:

SELinux is preventing ld-linux.so.2 from loading /usr/lib/libADM5avutil.so.50
which requires text relocation.

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/libADM5avutil.so.50'

Additional Information:

Source Context                system_u:system_r:prelink_t:SystemLow-SystemHigh
Target Context                system_u:object_r:lib_t:SystemLow
Target Objects                /usr/lib/libADM5avutil.so.50 [ 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           avidemux-2.5.1-20.fc11
Policy RPM                    selinux-policy-3.6.12-86.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.30.5-43_1.cubbi_tuxonice.fc11.i586 #1 SMP Sat
                              Sep 12 18:22:31 CEST 2009 i686 i686
Alert Count                   13
First Seen                    Sun 09 Aug 2009 10:48:13 AM EDT
Last Seen                     Fri 20 Nov 2009 07:22:52 AM EST
Local ID                      e4b43900-0b0e-4a0b-b24d-d2cb8311070c
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258719772.541:23): avc:  denied  { execmod } for  pid=4097 comm="ld-linux.so.2" path="/usr/lib/libADM5avutil.so.50" dev=dm-0 ino=7225868 scontext=system_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1258719772.541:23): arch=40000003 syscall=125 success=no exit=-13 a0=6ea000 a1=e000 a2=5 a3=bf954700 items=0 ppid=3569 pid=4097 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="ld-linux.so.2" exe="/lib/ld-2.10.1.so" subj=system_u:system_r:prelink_t:s0-s0:c0.c1023 key=(null)



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

#============= prelink_t ==============
#!!!! This avc is allowed in the current policy

allow prelink_t lib_t:file execmod;

Comment 1 Daniel Walsh 2010-02-05 16:11:26 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.