Bug 544156 - SELinux is preventing avidemux2_qt4 from loading /usr/lib/libADM5avformat.so.52 which requires text relocation.
Summary: SELinux is preventing avidemux2_qt4 from loading /usr/lib/libADM5avformat.so....
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:a379334b5dd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-04 02:45 UTC by Rajkiran
Modified: 2009-12-04 11:24 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Rajkiran 2009-12-04 02:45:51 UTC
Summary:

SELinux is preventing avidemux2_qt4 from loading /usr/lib/libADM5avformat.so.52
which requires text relocation.

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/libADM5avformat.so.52'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/libADM5avformat.so.52 [ file ]
Source                        avidemux2_qt4
Source Path                   /usr/bin/avidemux2_qt4
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           avidemux-qt-2.5.0-9.20090814svn.fc11
Target RPM Packages           avidemux-libs-2.5.0-9.20090814svn.fc11
Policy RPM                    selinux-policy-3.6.12-85.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.8-64.fc11.i686.PAE #1 SMP
                              Fri Sep 25 04:56:58 EDT 2009 i686 i686
Alert Count                   1
First Seen                    Fri 23 Oct 2009 07:18:46 PM IST
Last Seen                     Fri 23 Oct 2009 07:18:46 PM IST
Local ID                      230291f1-ee2d-419d-b372-2b22c8254c80
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1256305726.646:188): avc:  denied  { execmod } for  pid=9342 comm="avidemux2_qt4" path="/usr/lib/libADM5avformat.so.52" dev=sda3 ino=162869 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1256305726.646:188): arch=40000003 syscall=125 success=no exit=-13 a0=885000 a1=2d000 a2=5 a3=bfe9f270 items=0 ppid=1 pid=9342 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="avidemux2_qt4" exe="/usr/bin/avidemux2_qt4" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-85.fc11,allow_execmod,avidemux2_qt4,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-04 11:24:49 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.