Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 600423 - SELinux is preventing totem-video-thu from loading /usr/lib/i686/libx264.so.61 which requires text relocation.
SELinux is preventing totem-video-thu from loading /usr/lib/i686/libx264.so.6...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
13
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:738508dfe50...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-04 12:47 EDT by Jitesh Shah
Modified: 2010-06-04 17:09 EDT (History)
2 users (show)

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


Attachments (Terms of Use)

  None (edit)
Description Jitesh Shah 2010-06-04 12:47:55 EDT
Summary:

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) 2.6.27.5-117.fc10.i686
                              #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 17:07:42 EDT
restorecon -v  /usr/lib/i686/libx264.so.61
Comment 2 Daniel Walsh 2010-06-04 17:09:04 EDT
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.