Bug 671597

Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'unlink' accesses on the file pulse-shm-517997291.
Product: [Fedora] Fedora Reporter: Matěj Cepl <mcepl>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, mcepl, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:767c870e3a34b72efbb7b5e1f7b01232aef8124095e5e579e0dbcd21dc96cf7d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-24 16:03:11 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 Matěj Cepl 2011-01-22 01:16:37 UTC
SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'unlink' accesses on the file pulse-shm-517997291.

No idea what i did, but it looks interesting.

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

If you believe that npviewer.bin should be allowed unlink access on the pulse-shm-517997291 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 npviewer.bin /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:mozilla_plugin_tmpfs_t:s0
Target Objects                pulse-shm-517997291 [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
Port                          <Neznámé>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.3.0-16.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.13-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.x86_64 #1 SMP Fri Jan
                              7 14:57:36 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Čt 20. leden 2011, 16:33:56 CET
Last Seen                     Pá 21. leden 2011, 17:02:23 CET
Local ID                      a72cafa9-8db8-41dd-8824-699ef3c186d0

Raw Audit Messages
type=AVC msg=audit(1295625743.292:9639): avc:  denied  { unlink } for  pid=16255 comm="npviewer.bin" name="pulse-shm-517997291" dev=tmpfs ino=4614099 scontext=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:mozilla_plugin_tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1295625743.292:9639): arch=i386 syscall=mprotect per=8 success=yes exit=0 a0=fffb2f70 a1=736c7570 a2=47382ff4 a3=fffb300d items=0 ppid=16234 pid=16255 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=701 comm=npviewer.bin exe=/usr/lib/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:nsplugin_t:s0-s0:c0.c1023 key=(null)

Hash: npviewer.bin,nsplugin_t,mozilla_plugin_tmpfs_t,file,unlink

audit2allow

#============= nsplugin_t ==============
allow nsplugin_t mozilla_plugin_tmpfs_t:file unlink;

audit2allow -R

#============= nsplugin_t ==============
allow nsplugin_t mozilla_plugin_tmpfs_t:file unlink;

Comment 1 Daniel Walsh 2011-01-24 16:03:11 UTC
Fixed in policycoreutils-2.0.85-9.fc15