Bug 551591 - SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from loading /usr/lib/firefox/plugins/libractrl.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from loading /usr...
Keywords:
Status: CLOSED DUPLICATE of bug 543427
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:e77dd9b14ca...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-31 14:20 UTC by Chris
Modified: 2009-12-31 14:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-31 14:26:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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