Bug 743939 - SELinux is preventing /usr/lib/xulrunner-2/plugin-container from loading /usr/lib/flash-plugin/libflashplayer.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/xulrunner-2/plugin-container from loading /usr...
Keywords:
Status: CLOSED DUPLICATE of bug 743641
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:2cccb886b80...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-06 14:23 UTC by arshadmomin
Modified: 2011-10-06 14:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-06 14:32:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description arshadmomin 2011-10-06 14:23:04 UTC
Summary:

SELinux is preventing /usr/lib/xulrunner-2/plugin-container from loading
/usr/lib/flash-plugin/libflashplayer.so which requires text relocation.

Detailed Description:

The plugin-containe application attempted to load
/usr/lib/flash-plugin/libflashplayer.so 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/se(removed)-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/usr/lib/flash-plugin/libflashplayer.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Allowing Access:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/flash-plugin/libflashplayer.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/flash-plugin/libflashplayer.so [ file ]
Source                        plugin-containe
Source Path                   /usr/lib/xulrunner-2/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xulrunner2-2.0-1.fc12.remi
Target RPM Packages           flash-plugin-11.0.1.152-release
Policy RPM                    se(removed)-policy-3.6.32-127.fc12
Se(removed) Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.26-175.fc12.i686 #1 SMP Wed Dec
                              1 21:52:04 UTC 2010 i686 athlon
Alert Count                   62
First Seen                    Wed 05 Oct 2011 06:41:07 PM EDT
Last Seen                     Wed 05 Oct 2011 07:08:05 PM EDT
Local ID                      3d8a99e4-21a7-4f3f-abd3-b5d9139bc4a0
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1317856085.853:224): avc:  denied  { execmod } for  pid=4214 comm="plugin-containe" path="/usr/lib/flash-plugin/libflashplayer.so" dev=dm-0 ino=408767 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1317856085.853:224): arch=40000003 syscall=125 success=no exit=-13 a0=627d000 a1=fc7000 a2=5 a3=bffb4ce0 items=0 ppid=1958 pid=4214 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="plugin-containe" exe="/usr/lib/xulrunner-2/plugin-container" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,plugin-containe,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 2011-10-06 14:32:12 UTC

*** This bug has been marked as a duplicate of bug 743641 ***


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