Bug 544166 - SELinux is preventing ld-linux.so.2 from loading /usr/lib/i686/libavutil.so.49.11.0 which requires text relocation.
Summary: SELinux is preventing ld-linux.so.2 from loading /usr/lib/i686/libavutil.so.4...
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:18de0d83730...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-04 03:35 UTC by Jason
Modified: 2009-12-04 11:16 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-04 11:16:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jason 2009-12-04 03:35:37 UTC
Summary:

SELinux is preventing ld-linux.so.2 from loading
/usr/lib/i686/libavutil.so.49.11.0 which requires text relocation.

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/i686/libavutil.so.49.11.0'

Additional Information:

Source Context                system_u:system_r:prelink_t:s0
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/i686/libavutil.so.49.11.0 [ file ]
Source                        ld-linux.so.2
Source Path                   /lib/ld-2.9.so
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           glibc-2.9-3
Target RPM Packages           ffmpeg-libs-0.4.9-0.56.20080908.fc10
Policy RPM                    selinux-policy-3.5.13-30.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.27.7-134.fc10.i686
                              #1 SMP Mon Dec 1 22:42:50 EST 2008 i686 i686
Alert Count                   1
First Seen                    Sat 21 Nov 2009 01:52:25 PM EST
Last Seen                     Sat 21 Nov 2009 01:52:25 PM EST
Local ID                      c8b1e51c-a032-49eb-9398-044b30c85ede
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258829545.407:31): avc:  denied  { execmod } for  pid=27333 comm="ld-linux.so.2" path="/usr/lib/i686/libavutil.so.49.11.0" dev=sda2 ino=1220738 scontext=system_u:system_r:prelink_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1258829545.407:31): arch=40000003 syscall=125 success=no exit=-13 a0=111000 a1=c000 a2=5 a3=bfc24e00 items=0 ppid=22210 pid=27333 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="ld-linux.so.2" exe="/lib/ld-2.9.so" subj=system_u:system_r:prelink_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-30.fc10,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 Miroslav Grepl 2009-12-04 11:16:05 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.