Bug 544163 - SELinux is preventing vlc from loading /usr/lib/sse2/libpostproc.so.51.2.0 which requires text relocation.
Summary: SELinux is preventing vlc from loading /usr/lib/sse2/libpostproc.so.51.2.0 wh...
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:f02df44ff0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-04 03:33 UTC by Jason
Modified: 2009-12-04 11:23 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Jason 2009-12-04 03:33:14 UTC
Summary:

SELinux is preventing vlc from loading /usr/lib/sse2/libpostproc.so.51.2.0 which
requires text relocation.

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/sse2/libpostproc.so.51.2.0'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_execmem_t:s0
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/sse2/libpostproc.so.51.2.0 [ file ]
Source                        vlc
Source Path                   /usr/bin/vlc
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           vlc-core-0.9.6-1.fc10
Target RPM Packages           ffmpeg-libs-0.4.9-0.52.20080908.fc10
Policy RPM                    selinux-policy-3.5.13-18.fc10
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.27.5-117.fc10.i686
                              #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686
Alert Count                   2
First Seen                    Sun 30 Nov 2008 12:20:45 AM EST
Last Seen                     Tue 02 Dec 2008 04:51:23 PM EST
Local ID                      c9aa4161-cc1f-4e17-9175-5c8b497c4d44
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1228254683.995:151): avc:  denied  { execmod } for  pid=6109 comm="vlc" path="/usr/lib/sse2/libpostproc.so.51.2.0" dev=sda2 ino=1313555 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1228254683.995:151): arch=40000003 syscall=125 success=no exit=-13 a0=114000 a1=9000 a2=5 a3=bfdbd120 items=0 ppid=1 pid=6109 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=17 comm="vlc" exe="/usr/bin/vlc" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0 key=(null)



Hash String generated from  selinux-policy-3.5.13-18.fc10,allow_execmod,vlc,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

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

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