Bug 628933

Summary: SELinux is preventing /usr/bin/nspluginscan "read" access on /usr/lib/mozilla/plugins-wrapped.
Product: [Fedora] Fedora Reporter: Magnus Tuominen <magnus.tuominen>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: dwalsh, magnus.tuominen, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b74c99943d3db38a85d5dd20b8917e46891ba6494d0662eea6a9124e8c5b9c63
Fixed In Version: selinux-policy-3.9.3-4.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-23 12:43:47 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 Magnus Tuominen 2010-08-31 12:50:52 UTC
Summary:

SELinux is preventing /usr/bin/nspluginscan "read" access on
/usr/lib/mozilla/plugins-wrapped.

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/lib/mozilla/plugins-wrapped [ dir ]
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.0-2.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                   4
First Seen                    Tue 31 Aug 2010 03:47:45 PM EEST
Last Seen                     Tue 31 Aug 2010 03:47:45 PM EEST
Local ID                      f183620f-9402-4623-b615-2d95e3a42a83
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1283258865.651:115): avc:  denied  { read } for  pid=1770 comm="nspluginscan" name="plugins-wrapped" dev=sdb3 ino=1311289 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nsplugin_rw_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1283258865.651:115): arch=c000003e syscall=2 success=no exit=-13 a0=9c9898 a1=90800 a2=9c9898 a3=80 items=0 ppid=1633 pid=1770 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,dir,read
audit2allow suggests:

#============= nsplugin_t ==============
allow nsplugin_t nsplugin_rw_t:dir read;

Comment 1 Daniel Walsh 2010-08-31 14:08:24 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.9.0-2.fc14

Comment 2 Fedora Update System 2010-09-10 16:48:42 UTC
selinux-policy-3.9.3-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-4.fc14

Comment 3 Fedora Update System 2010-09-11 02:16:37 UTC
selinux-policy-3.9.3-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.3-4.fc14

Comment 4 Magnus Tuominen 2010-09-11 19:22:58 UTC
setsebool -P allow_unconfined_nsplugin_transition=0
is required for using the wrapped flash-plugin in konqueror, following http://fedoraproject.org/wiki/Flash#SELinux_problems

Comment 5 Magnus Tuominen 2010-09-11 19:24:09 UTC
rpm -q selinux-policy
selinux-policy-3.9.3-4.fc14.noarch


^forgot to add that

Comment 6 Fedora Update System 2010-09-23 12:40:24 UTC
selinux-policy-3.9.3-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.