Bug 632876

Summary: SELinux is preventing /usr/bin/nspluginscan "getattr" access on /usr/lib64/mozilla/plugins-wrapped/npwrapper.so.
Product: [Fedora] Fedora Reporter: leigh scott <leigh123linux>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: archit2x3, dwalsh, fluturel, girtsz, info, jarin.franek, leigh123linux, magnus.tuominen, martin.nad89, mgrepl, pahan, peluche20
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:63e1f89bb9a28abc736e6c3054355cfed7ddec3a780148d74cc9ec5e60fff0d4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-13 13:15:03 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 leigh scott 2010-09-11 17:00:52 UTC
Summary:

SELinux is preventing /usr/bin/nspluginscan "getattr" access on
/usr/lib64/mozilla/plugins-wrapped/npwrapper.so.

Detailed Description:

SELinux denied access requested by nspluginscan. It is not expected that this
access is required by nspluginscan and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c102
                              3
Target Context                system_u:object_r:nsplugin_rw_t:s0
Target Objects                /usr/lib64/mozilla/plugins-wrapped/npwrapper.so [
                              lnk_file ]
Source                        nspluginscan
Source Path                   /usr/bin/nspluginscan
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-4.5.1-1.fc14
Target RPM Packages           nspluginwrapper-1.3.0-14.fc14
Policy RPM                    selinux-policy-3.9.3-4.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.4-12.fc14.x86_64 #1 SMP Fri Aug 27 07:45:05
                              UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Sat 11 Sep 2010 04:53:21 PM BST
Last Seen                     Sat 11 Sep 2010 04:53:21 PM BST
Local ID                      b3876055-901d-45fd-931d-9c24928c3c35
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1284220401.936:37): avc:  denied  { getattr } for  pid=1799 comm="nspluginscan" path="/usr/lib64/mozilla/plugins-wrapped/npwrapper.so" dev=dm-0 ino=664682 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nsplugin_rw_t:s0 tclass=lnk_file

node=(removed) type=SYSCALL msg=audit(1284220401.936:37): arch=c000003e syscall=6 success=no exit=-13 a0=2134158 a1=7fff4c4008c0 a2=7fff4c4008c0 a3=1 items=0 ppid=1425 pid=1799 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="nspluginscan" exe="/usr/bin/nspluginscan" subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,nspluginscan,nsplugin_t,nsplugin_rw_t,lnk_file,getattr
audit2allow suggests:

#============= nsplugin_t ==============
allow nsplugin_t nsplugin_rw_t:lnk_file getattr;

Comment 1 Daniel Walsh 2010-09-13 13:15:03 UTC

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