Bug 600423 - SELinux is preventing totem-video-thu from loading /usr/lib/i686/libx264.so.61 which requires text relocation.
Summary: SELinux is preventing totem-video-thu from loading /usr/lib/i686/libx264.so.6...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy   
(Show other bugs)
Version: 13
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:738508dfe50...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-06-04 16:47 UTC by Jitesh Shah
Modified: 2010-06-04 21:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-06-04 21:07:42 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jitesh Shah 2010-06-04 16:47:55 UTC

SELinux is preventing totem-video-thu from loading /usr/lib/i686/libx264.so.61
which requires text relocation.

Detailed Description:

The totem-video-thu application attempted to load /usr/lib/i686/libx264.so.61
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/libx264.so.61 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/libx264.so.61 to run correctly, you can change the
file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/i686/libx264.so.61'" 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/libx264.so.61'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/i686/libx264.so.61'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/i686/libx264.so.61 [ file ]
Source                        totem-video-thu
Source Path                   /usr/bin/totem-video-thumbnailer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-2.24.3-1.fc10
Target RPM Packages           x264-libs-0.0.0-0.20.20080905.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)
                              #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 i686
Alert Count                   54
First Seen                    Sat 30 May 2009 12:16:04 PM IST
Last Seen                     Sat 30 May 2009 12:16:19 PM IST
Local ID                      0f44f3ff-4739-45c0-a361-2d2ed8b40569
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1243665979.525:88): avc:  denied  { execmod } for  pid=12628 comm="totem-video-thu" path="/usr/lib/i686/libx264.so.61" dev=sda11 ino=1304938 scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1243665979.525:88): arch=40000003 syscall=125 success=no exit=-13 a0=dfd000 a1=87000 a2=5 a3=bf99c040 items=0 ppid=12627 pid=12628 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="totem-video-thu" exe="/usr/bin/totem-video-thumbnailer" subj=unconfined_u:unconfined_r:unconfined_t:s0 key=(null)

Hash String generated from  allow_execmod,totem-video-thu,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 Daniel Walsh 2010-06-04 21:07:42 UTC
restorecon -v  /usr/lib/i686/libx264.so.61

Comment 2 Daniel Walsh 2010-06-04 21:09:04 UTC
Also this is an old avc Delete the old ones,

yum -y update

Note You need to log in before you can comment on or make changes to this bug.