Bug 759281 - SELinux is preventing /usr/lib/openoffice.org/basis3.1/program/pluginapp.bin from loading /usr/lib/flash-plugin/libflashplayer.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/openoffice.org/basis3.1/program/pluginapp.bin ...
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:493bb3134b4...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-01 21:30 UTC by office
Modified: 2011-12-02 18:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-02 09:45:29 UTC
Type: ---


Attachments (Terms of Use)

Description office 2011-12-01 21:30:38 UTC
Summary:

SELinux is preventing /usr/lib/openoffice.org/basis3.1/program/pluginapp.bin
from loading /usr/lib/flash-plugin/libflashplayer.so which requires text
relocation.

Detailed Description:

The pluginapp.bin 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_execmem_t:s0-
                              s0:c0.c1023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/flash-plugin/libflashplayer.so [ file ]
Source                        pluginapp.bin
Source Path                   /usr/lib/openoffice.org/basis3.1/program/pluginapp
                              .bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           openoffice.org-core-3.1.1-19.34.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 (removed) 2.6.32.26-175.fc12.i686 #1
                              SMP Wed Dec 1 21:52:04 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Thu 01 Dec 2011 11:18:32 PM EET
Last Seen                     Thu 01 Dec 2011 11:18:32 PM EET
Local ID                      766a20c1-ca9e-4a0a-ac72-c4b025072d00
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1322774312.324:228): avc:  denied  { execmod } for  pid=4930 comm="pluginapp.bin" path="/usr/lib/flash-plugin/libflashplayer.so" dev=dm-0 ino=656048 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1322774312.324:228): arch=40000003 syscall=125 success=no exit=-13 a0=dfa000 a1=fc8000 a2=5 a3=bfca5bb0 items=0 ppid=4380 pid=4930 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="pluginapp.bin" exe="/usr/lib/openoffice.org/basis3.1/program/pluginapp.bin" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,pluginapp.bin,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_execmem_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_execmem_t lib_t:file execmod;

Comment 1 Miroslav Grepl 2011-12-02 09:45:29 UTC
F12 is no longer supported. Please update to a newer version of Fedora. Thank you.


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