Bug 1305425

Summary: SELinux is preventing /usr/lib64/nspluginwrapper/npviewer.bin from 'write' accesses on the file /home/fred/eclipse/configuration/org.eclipse.core.runtime/.manager/.tmp6606326555505138046.instance.
Product: [Fedora] Fedora Reporter: fred <xyzk>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:0b97a63ff32c504f1e01865a6d3889979acd942c727a9dce8e4997ad8e24de96;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 18:32:26 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 fred 2016-02-08 08:03:33 UTC
Description of problem:
It appears when eclipse starts.
SELinux is preventing /usr/lib64/nspluginwrapper/npviewer.bin from 'write' accesses on the file /home/fred/eclipse/configuration/org.eclipse.core.runtime/.manager/.tmp6606326555505138046.instance.

*****  Plugin mozplugger (91.9 confidence) suggests   ************************

If vous voulez utiliser le paquet plugin
Then vous devez désactiver les contrôles SELinux sur les extensions Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

*****  Plugin leaks (7.81 confidence) suggests   *****************************

If vous souhaitez ignorer que npviewer.bin tente d'obtenir l'accès write à .tmp6606326555505138046.instance file car vous pensez qu'il ne devrait pas nécessiter cet accès.
Then vous devriez rapporter ceci en tant qu'anomalie.  
Vous pouvez générer un module de stratégie local pour dontaudit cet accès.
Do
# grep /usr/lib64/nspluginwrapper/npviewer.bin /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp

*****  Plugin catchall (1.71 confidence) suggests   **************************

If vous pensez que npviewer.bin devrait être autorisé à accéder write sur .tmp6606326555505138046.instance file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# 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_t:s0
Target Objects                /home/fred/eclipse/configuration/org.eclipse.core.
                              runtime/.manager/.tmp6606326555505138046.instance
                              [ file ]
Source                        npviewer.bin
Source Path                   /usr/lib64/nspluginwrapper/npviewer.bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nspluginwrapper-1.4.4-22.fc23.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.4.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.3.4-300.fc23.x86_64 #1 SMP Mon
                              Jan 25 13:39:23 UTC 2016 x86_64 x86_64
Alert Count                   447
First Seen                    2016-02-06 21:21:29 CET
Last Seen                     2016-02-08 08:37:41 CET
Local ID                      9d7fc52d-fea7-4f7c-974a-12b2d6dc2ce3

Raw Audit Messages
type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/eclipse/configuration/org.eclipse.core.runtime/.manager/.tmp6606326555505138046.instance" dev="dm-2" ino=275666 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/eclipse/configuration/org.eclipse.equinox.app/.manager/.tmp5828197932963378581.instance" dev="dm-2" ino=277068 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/workspace/.metadata/.plugins/org.eclipse.dltk.core.index.sql.h2/model.h2.db" dev="dm-2" ino=276461 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/workspace/.metadata/.lock" dev="dm-2" ino=282496 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/workspace/.metadata/.plugins/com.dubture.symfony.index/symfonymodel.h2.db" dev="dm-2" ino=273892 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/workspace/.metadata/dbeaver-debug.log" dev="dm-2" ino=262234 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=AVC msg=audit(1454917061.891:619): avc:  denied  { write } for  pid=5308 comm="npviewer.bin" path="/home/fred/workspace/.metadata/.plugins/org.eclipse.epp.logging.aeri.ui/history/write.lock" dev="dm-2" ino=273437 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1454917061.891:619): arch=x86_64 syscall=execve success=yes exit=0 a0=564835b3b760 a1=564835b3b7f0 a2=564835b3ce10 a3=8 items=0 ppid=4167 pid=5308 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=npviewer.bin exe=/usr/lib64/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_t,file,write

Version-Release number of selected component:
selinux-policy-3.13.1-158.4.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.3.4-300.fc23.x86_64
type:           libreport

Potential duplicate: bug 829006

Comment 1 Fedora End Of Life 2016-11-24 15:27:05 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2016-12-20 18:32:26 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.