Bug 1047114

Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'create' accesses on the file C:\nppdf32Log\debuglog.txt.
Product: [Fedora] Fedora Reporter: Mrchal <akees>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7bff88c7b866e834c1382cb8487dbcec978933981fa9fd44dffa551ea39b5225
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-03 19:03:10 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 Mrchal 2013-12-29 07:50:13 UTC
Description of problem:
SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'create' accesses on the file C:\nppdf32Log\debuglog.txt.

*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin catchall (1.81 confidence) suggests   **************************

If you believe that npviewer.bin should be allowed create access on the C:\nppdf32Log\debuglog.txt 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:mozilla_plugin_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:object_r:user_home_dir_t:s0
Target Objects                C:\nppdf32Log\debuglog.txt [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib/nspluginwrapper/npviewer.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.4.4-19.fc20.i686
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-12-29 08:48:00 CET
Last Seen                     2013-12-29 08:48:00 CET
Local ID                      f83945d3-94c8-43b0-a161-464ec7f83303

Raw Audit Messages
type=AVC msg=audit(1388303280.659:495): avc:  denied  { create } for  pid=1896 comm="npviewer.bin" name="C:\nppdf32Log\debuglog.txt" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1388303280.659:495): arch=i386 syscall=fstat per=8 success=no exit=EACCES a0=f634e93a a1=441 a2=1b6 a3=93d8390 items=0 ppid=1807 pid=1896 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=npviewer.bin exe=/usr/lib/nspluginwrapper/npviewer.bin subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: npviewer.bin,mozilla_plugin_t,user_home_dir_t,file,create

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Potential duplicate: bug 812566

Comment 1 Daniel Walsh 2014-01-03 19:03:10 UTC
*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If you want to use the plugin package
Then you must turn off SELinux controls on the Firefox plugins.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

In order to get this to work, you need to disable the mozilla plugin protection.