Bug 551591

Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from loading /usr/lib/firefox/plugins/libractrl.so which requires text relocation.
Product: [Fedora] Fedora Reporter: Chris <chris.j.n>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e77dd9b14caa8d3501b1fa3a75f61aacd8a9a16dce43e38d1eda4dfc9fdfe499
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-31 14:26:15 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 Chris 2009-12-31 14:20:58 UTC
Summary:

SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from loading
/usr/lib/firefox/plugins/libractrl.so which requires text relocation.

Detailed Description:

The npviewer.bin application attempted to load
/usr/lib/firefox/plugins/libractrl.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/firefox/plugins/libractrl.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Allowing Access:

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

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/firefox/plugins/libractrl.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/firefox/plugins/libractrl.so [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-10.fc12
Target RPM Packages           logmein-client-1.0.387-1
Policy RPM                    selinux-policy-3.6.32-59.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.9-174.fc12.i686.PAE #1 SMP
                              Mon Dec 21 06:04:56 UTC 2009 i686 i686
Alert Count                   1
First Seen                    Wed 30 Dec 2009 07:05:23 PM MST
Last Seen                     Wed 30 Dec 2009 07:05:23 PM MST
Local ID                      be3c381e-c99c-4d4b-8a07-cb6130359d68
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1262225123.81:25207): avc:  denied  { execmod } for  pid=2585 comm="npviewer.bin" path="/usr/lib/firefox/plugins/libractrl.so" dev=dm-0 ino=2098639 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(1262225123.81:25207): arch=40000003 syscall=125 success=no exit=-13 a0=dfa000 a1=694000 a2=5 a3=bfa31730 items=0 ppid=2584 pid=2585 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="npviewer.bin" exe="/usr/lib/nspluginwrapper/npviewer.bin" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-59.fc12,allow_execmod,npviewer.bin,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2009-12-31 14:26:15 UTC

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