Bug 759281

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.
Product: [Fedora] Fedora Reporter: office
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 12CC: dominick.grift, dwalsh, mgrepl, office
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:493bb3134b42fdde4702196e05069fad5aa3d096e165e1d4bf2049198a0829f6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-02 09:45:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.