Bug 679062

Summary: SELinux is preventing /usr/bin/nspluginviewer from 'execute' accesses on the file /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so.
Product: [Fedora] Fedora Reporter: Michal Hlavinka <mhlavink>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c59a74af2111de160551cd3ad86e162796d05ac91439f381c527b7280b5c94d0
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-26 20:44:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Hlavinka 2011-02-21 13:23:27 UTC
SELinux is preventing /usr/bin/nspluginviewer from 'execute' accesses on the file /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that nspluginviewer should be allowed execute access on the nswrapper_32_64.libflashplayer.so file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep nspluginviewer /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:object_r:nsplugin_rw_t:s0
Target Objects                /usr/lib64/mozilla/plugins-
                              wrapped/nswrapper_32_64.libflashplayer.so [ file ]
Source                        nspluginviewer
Source Path                   /usr/bin/nspluginviewer
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdebase-4.6.0-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-0.rc4.git7.1.fc15.x86_64 #1 SMP Mon Feb 14
                              01:29:48 UTC 2011 x86_64 x86_64
Alert Count                   5
First Seen                    Thu 17 Feb 2011 10:29:00 AM CET
Last Seen                     Mon 21 Feb 2011 09:48:48 AM CET
Local ID                      09c1de81-70a4-473d-903b-876f1cdfb333

Raw Audit Messages
type=AVC msg=audit(1298278128.120:703): avc:  denied  { execute } for  pid=31499 comm="nspluginviewer" path="/usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so" dev=sdb1 ino=669099 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:nsplugin_rw_t:s0 tclass=file


type=SYSCALL msg=audit(1298278128.120:703): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=21f978 a2=5 a3=802 items=0 ppid=31485 pid=31499 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=nspluginviewer exe=/usr/bin/nspluginviewer subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)

Hash: nspluginviewer,nsplugin_t,nsplugin_rw_t,file,execute

audit2allow

#============= nsplugin_t ==============
allow nsplugin_t nsplugin_rw_t:file execute;

audit2allow -R

#============= nsplugin_t ==============
allow nsplugin_t nsplugin_rw_t:file execute;