Bug 473177

Summary: SELinux is preventing gnome-power-man from loading /usr/lib/sse2/libpostproc.so.51.2.0 which requires text relocation.
Product: [Fedora] Fedora Reporter: fizzyfanta
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: bernd.bartmann, dwalsh, jkubin, jonathan.rushdoony, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-18 09:28:55 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 fizzyfanta 2008-11-26 22:39:38 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4


Summary:

SELinux is preventing gnome-power-man from loading
/usr/lib/sse2/libpostproc.so.51.2.0 which requires text relocation.

Detailed Description:

The gnome-power-man 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                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/sse2/libpostproc.so.51.2.0 [ file ]
Source                        gnome-power-man
Source Path                   /usr/bin/gnome-power-manager
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           gnome-power-manager-2.24.1-3.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
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.27.5-117.fc10.i686
                              #1 SMP Tue Nov 18 12:19:59 EST 2008 i686 athlon
Alert Count                   5
First Seen                    Wed 26 Nov 2008 07:38:42 PM GMT
Last Seen                     Wed 26 Nov 2008 10:06:43 PM GMT
Local ID                      3bd5b415-36b8-46ea-81f4-255ce73675c5
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1227737203.380:5): avc:  denied  { execmod } for  pid=2329 comm="gnome-power-man" path="/usr/lib/sse2/libpostproc.so.51.2.0" dev=sda3 ino=4349964 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=localhost.localdomain type=SYSCALL msg=audit(1227737203.380:5): arch=40000003 syscall=125 success=no exit=-13 a0=41ae000 a1=9000 a2=5 a3=bfea9fc0 items=0 ppid=2326 pid=2329 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm="gnome-power-man" exe="/usr/bin/gnome-power-manager" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Reproducible: Sometimes

Comment 1 Daniel Walsh 2008-11-27 11:26:46 UTC
execute

chcon -R -t textrel_shlib_t /usr/lib/sse2

Fixed in selinux-policy-3.5.13-26.fc10

Comment 2 Bug Zapper 2009-11-18 08:59:32 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping