Bug 398621 - SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading /usr/lib/mozilla/plugins/nppdf.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading ...
Keywords:
Status: CLOSED DUPLICATE of bug 250249
Alias: None
Product: Fedora
Classification: Fedora
Component: nspluginwrapper
Version: 8
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Christopher Aillon
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-25 19:18 UTC by James J Catchpole
Modified: 2018-04-11 15:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-19 17:21:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James J Catchpole 2007-11-25 19:18:27 UTC
Detailed Description
    The /usr/lib/nspluginwrapper/plugin-config application attempted to load
    /usr/lib/mozilla/plugins/nppdf.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
    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/mozilla/plugins/nppdf.so to use relocation as a workaround, until
    the library is fixed. Please file a
    http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

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

    The following command will allow this access:
    chcon -t textrel_shlib_t /usr/lib/mozilla/plugins/nppdf.so

Additional Information        

Source Context                system_u:system_r:unconfined_t:s0
Target Context                system_u:object_r:lib_t:s0
Target Objects                /usr/lib/mozilla/plugins/nppdf.so [ file ]
Affected RPM Packages         nspluginwrapper-0.9.91.5-12.fc8 [application]
Policy RPM                    selinux-policy-3.0.8-56.fc8
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.allow_execmod
Host Name                     jjc-mf-Fedora
Platform                      Linux jjc-mf-Fedora 2.6.23.1-49.fc8 #1 SMP Thu 
Nov
                              8 21:41:26 EST 2007 i686 i686
Alert Count                   21
First Seen                    Sat Nov 24 22:39:26 2007
Last Seen                     Sun Nov 25 13:53:48 2007
Local ID                      8bab165b-8053-4480-bcc3-7a9462a03468
Line Numbers                  

Raw Audit Messages            

avc: denied { execmod } for comm=plugin-config dev=dm-0 egid=500 euid=0
exe=/usr/lib/nspluginwrapper/plugin-con

Comment 2 Martin Stransky 2008-02-19 17:21:28 UTC

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


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