Bug 543802

Summary: SELinux is preventing /usr/bin/totem from loading /usr/lib/win32/drv3.so.6.0 which requires text relocation.
Product: [Fedora] Fedora Reporter: mohamed nasr <optimal_solution2000>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl, optimal_solution2000
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:87048339bc05e2680f592044316d6c912db4cd9b31ce478e31175d68c2b2086f
Fixed In Version: 3.6.32-55.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 22:47:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mohamed nasr 2009-12-03 06:18:12 UTC
Summary:

SELinux is preventing /usr/bin/totem from loading /usr/lib/win32/drv3.so.6.0
which requires text relocation.

Detailed Description:

The totem application attempted to load /usr/lib/win32/drv3.so.6.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/win32/drv3.so.6.0 to use relocation as a workaround, until the library
is fixed. Please file a bug report.

Allowing Access:

If you trust /usr/lib/win32/drv3.so.6.0 to run correctly, you can change the
file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/win32/drv3.so.6.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/win32/drv3.so.6.0'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/win32/drv3.so.6.0'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:lib_t:s0
Target Objects                /usr/lib/win32/drv3.so.6.0 [ file ]
Source                        totem-video-thu
Source Path                   /usr/bin/totem-video-thumbnailer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           totem-2.28.3-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-49.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-145.fc12.i686.PAE #1 SMP Sat Nov 21
                              16:12:37 EST 2009 i686 i686
Alert Count                   3
First Seen                    Wed 25 Nov 2009 04:30:48 AM EET
Last Seen                     Wed 25 Nov 2009 05:42:38 AM EET
Local ID                      0f08e17b-403d-477b-9cce-767fc1adccdf
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259120558.938:65): avc:  denied  { execmod } for  pid=25595 comm="totem" path="/usr/lib/win32/drv3.so.6.0" dev=sda7 ino=326146 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1259120558.938:65): arch=40000003 syscall=125 success=no exit=-13 a0=1a26000 a1=40000 a2=5 a3=b6044420 items=0 ppid=1 pid=25595 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="totem" exe="/usr/bin/totem" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,allow_execmod,totem-video-thu,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

Comment 1 Daniel Walsh 2009-12-03 14:06:02 UTC
Execute the chcon command in the sealert above.

You probably want to do it for all ".so" files in that directory.  I will correct the labeling in the next release.

Fixed in selinux-policy-3.6.32-54.fc12

Comment 2 Fedora Update System 2009-12-03 20:28:36 UTC
selinux-policy-3.6.32-55.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-55.fc12

Comment 3 Fedora Update System 2009-12-04 23:46:53 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12650

Comment 4 Fedora Update System 2009-12-08 07:53:33 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.