Bug 797497 - SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading /usr/lib/flash-plugin/libflashplayer.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading /us...
Keywords:
Status: CLOSED WONTFIX
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:b51365a1698...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-26 07:26 UTC by Bishnu Marasini
Modified: 2012-02-27 11:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-27 11:29:20 UTC
Type: ---


Attachments (Terms of Use)

Description Bishnu Marasini 2012-02-26 07:26:22 UTC
Summary:

SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading
/usr/lib/flash-plugin/libflashplayer.so which requires text relocation.

Detailed Description:

The plugin-config 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/selinux-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                        xulrunner-bin
Source Path                   /usr/lib/xulrunner-2/xulrunner-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-10.fc12
Target RPM Packages           flash-plugin-11.1.102.55-release
Policy RPM                    selinux-policy-3.6.32-127.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux lab404.localdomain
                              2.6.32.26-175.fc12.i686.PAE #1 SMP Wed Dec 1
                              21:45:50 UTC 2010 i686 i686
Alert Count                   34
First Seen                    Thu 23 Feb 2012 10:25:15 PM PKT
Last Seen                     Sat 25 Feb 2012 10:15:10 PM PKT
Local ID                      521839a9-cd77-4d73-aa90-f9b1490679e6
Line Numbers                  

Raw Audit Messages            

node=lab404.localdomain type=AVC msg=audit(1330190110.957:138): avc:  denied  { execmod } for  pid=8899 comm="plugin-config" path="/usr/lib/flash-plugin/libflashplayer.so" dev=sda3 ino=526258 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=lab404.localdomain type=SYSCALL msg=audit(1330190110.957:138): arch=40000003 syscall=125 success=no exit=-13 a0=dd5000 a1=fc8000 a2=5 a3=bf86e2d0 items=0 ppid=8897 pid=8899 auid=504 uid=504 gid=504 euid=0 suid=0 fsuid=0 egid=504 sgid=504 fsgid=504 tty=(none) ses=1 comm="plugin-config" exe="/usr/lib/nspluginwrapper/plugin-config" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,xulrunner-bin,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 Miroslav Grepl 2012-02-27 11:29:20 UTC
Please update to a newer version of Fedora which is supported.


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