Bug 819541 - SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'open' accesses on the file C:\nppdf32Log\debuglog.txt.
Summary: SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'open' acces...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:536d670db3cb21869abeea3133d...
: 949170 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-07 14:08 UTC by penguin283
Modified: 2013-04-08 09:09 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-08 15:18:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description penguin283 2012-05-07 14:08:41 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.4-4.fc17.x86_64
time:           Mon 07 May 2012 10:07:16 AM EDT

description:
:SELinux is preventing /usr/lib/nspluginwrapper/npviewer.bin from 'open' accesses on the file C:\nppdf32Log\debuglog.txt.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that npviewer.bin should be allowed open 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-7.fc17.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-121.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.4-4.fc17.x86_64 #1
:                              SMP Fri May 4 17:25:07 UTC 2012 x86_64 x86_64
:Alert Count                   10
:First Seen                    Mon 07 May 2012 06:24:38 AM EDT
:Last Seen                     Mon 07 May 2012 10:05:36 AM EDT
:Local ID                      d27ae911-4893-4fc2-850a-9e52e0c3473c
:
:Raw Audit Messages
:type=AVC msg=audit(1336399536.23:77): avc:  denied  { open } for  pid=1653 comm="npviewer.bin" name="C:\nppdf32Log\debuglog.txt" dev="sda5" ino=134075 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(1336399536.23:77): arch=i386 syscall=fstat per=8 success=no exit=EACCES a0=f777632a a1=441 a2=1b6 a3=90a5208 items=0 ppid=1652 pid=1653 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 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,open
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 penguin283 2012-05-07 14:31:02 UTC
Happens everytime Firefox starts. 
Tried  # grep npviewer.bin /var/log/audit/audit.log | audit2allow -M mypol
       # semodule -i mypol.pp
several times.

Comment 2 Daniel Walsh 2012-05-07 14:43:34 UTC
Where is C:\nppdf32Log\debuglog.txt located?

Have you tried to run restorecon on it?

Comment 3 penguin283 2012-05-07 15:36:45 UTC
As far as I can tell there is no C:\nppdf32Log\debuglog.txt which may be part of the problem. Never tried restorecon, does anything needed to be added to it?

Comment 4 Daniel Walsh 2012-05-07 19:08:34 UTC
It looks like you have some kind of wacky plugin which is attempting to download some Windows file into your homedir.  Probably not something you want.  Any idea what nppdf32log is?

We are not allowing mozilla_plugin_t to create arbitrary data in your homedir, which is what this is trying to do.

Comment 5 penguin283 2012-05-08 11:34:26 UTC
Disabled all plugins, alert still happened

Removed nspluginwrapper.i686 and alerts stopped.
Installed nspluginwrapper.x86_64, no more alerts yet with all plugins enabled. Thanks for the help. Richard

Comment 6 Daniel Walsh 2012-05-08 15:18:26 UTC
Ok if it happens again, reopen the bug.  Whatever was happening SELinux was blocking and that very well good have been a good thing.

Comment 7 Jim Perrin 2012-05-24 19:36:43 UTC
I'm seeing this as well, and it's adobe's acrobat reader browser plugin that causes this to happen. it also requires nspluginwrapper.i686

Comment 8 Daniel Walsh 2012-05-24 23:34:13 UTC
Probably need to open a bug with Adobe, to tell that Fedora does not have a directory,C:\nppdf32Log\

Comment 9 Miroslav Grepl 2013-04-08 09:09:47 UTC
*** Bug 949170 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.