Bug 560937 - SELinux is preventing nero from loading /usr/lib/nero/plug-ins/libMP3.so which requires text relocation.
Summary: SELinux is preventing nero from loading /usr/lib/nero/plug-ins/libMP3.so whic...
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:91bdcddde6d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-02-02 09:59 UTC by Yann
Modified: 2010-02-02 12:11 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Yann 2010-02-02 09:59:26 UTC
Summary:

SELinux is preventing nero from loading /usr/lib/nero/plug-ins/libMP3.so which
requires text relocation.

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/nero/plug-ins/libMP3.so'

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/nero/plug-ins/libMP3.so [ file ]
Source                        nero
Source Path                   /usr/bin/nero
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nerolinux-3.0.2.1-1
Target RPM Packages           nerolinux-3.0.2.1-1
Policy RPM                    selinux-policy-3.6.12-83.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.i586 #1 SMP Fri Sep 25
                              04:30:19 EDT 2009 i686 i686
Alert Count                   1
First Seen                    Wed 07 Oct 2009 12:31:47 IST
Last Seen                     Wed 07 Oct 2009 12:31:47 IST
Local ID                      e8b78c95-6414-4be7-a601-a112180607d7
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1254915107.587:142): avc:  denied  { execmod } for  pid=11586 comm="nero" path="/usr/lib/nero/plug-ins/libMP3.so" dev=dm-1 ino=2400327 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(1254915107.587:142): arch=40000003 syscall=125 success=no exit=-13 a0=254a000 a1=8c000 a2=5 a3=bfd56470 items=0 ppid=1 pid=11586 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="nero" exe="/usr/bin/nero" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



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

#============= unconfined_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_t lib_t:file execmod;

Comment 1 Miroslav Grepl 2010-02-02 12:11:38 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.