Bug 679546 - SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading /opt/google/talkplugin/libnpgtpo3dautoplugin.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading /op...
Keywords:
Status: CLOSED NOTABUG
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:f63ea79889f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 20:08 UTC by Clivia Landaverde
Modified: 2012-10-06 12:47 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-23 08:40:03 UTC
Type: ---


Attachments (Terms of Use)

Description Clivia Landaverde 2011-02-22 20:08:57 UTC
Summary:

SELinux is preventing /usr/lib/nspluginwrapper/plugin-config from loading
/opt/google/talkplugin/libnpgtpo3dautoplugin.so which requires text relocation.

Detailed Description:

The plugin-config application attempted to load
/opt/google/talkplugin/libnpgtpo3dautoplugin.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
/opt/google/talkplugin/libnpgtpo3dautoplugin.so to use relocation as a
workaround, until the library is fixed. Please file a bug report.

Allowing Access:

If you trust /opt/google/talkplugin/libnpgtpo3dautoplugin.so to run correctly,
you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/google/talkplugin/libnpgtpo3dautoplugin.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
'/opt/google/talkplugin/libnpgtpo3dautoplugin.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/google/talkplugin/libnpgtpo3dautoplugin.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                system_u:object_r:lib_t:s0
Target Objects                /opt/google/talkplugin/libnpgtpo3dautoplugin.so [
                              file ]
Source                        plugin-config
Source Path                   /usr/lib/nspluginwrapper/plugin-config
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-8.fc12
Target RPM Packages           google-talkplugin-1.8.0.0-1
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
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                   19
First Seen                    Thu 17 Feb 2011 05:09:16 PM EST
Last Seen                     Tue 22 Feb 2011 02:42:18 PM EST
Local ID                      a9530d76-4a71-493a-8796-22b5c811aae0
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1298403738.389:31): avc:  denied  { execmod } for  pid=2143 comm="plugin-config" path="/opt/google/talkplugin/libnpgtpo3dautoplugin.so" dev=dm-0 ino=660479 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1298403738.389:31): arch=40000003 syscall=125 success=no exit=-13 a0=c96000 a1=4c1000 a2=5 a3=bfa772a0 items=0 ppid=2141 pid=2143 auid=500 uid=500 gid=500 euid=0 suid=0 fsuid=0 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="plugin-config" exe="/usr/lib/nspluginwrapper/plugin-config" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-41.fc12,allow_execmod,plugin-config,unconfined_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_t ==============
allow unconfined_t lib_t:file execmod;

Comment 1 Miroslav Grepl 2011-02-23 08:40:03 UTC
F12 is no longer supported. Please update to newer release.

Btw. sealert tells you what to do.

Fix Command:

chcon -t textrel_shlib_t '/opt/google/talkplugin/libnpgtpo3dautoplugin.so'


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