Bug 1329825

Summary: SELinux is preventing plugin-containe from 'write' accesses on the file 2.jpg.
Product: [Fedora] Fedora Reporter: skos <skostiuchienko>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:0192f8194cb6bea10538bafdb2525fae551a34bc8e1c946fd76657db2dd4e322;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-25 08:49:22 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 skos 2016-04-23 14:31:38 UTC
Description of problem:
SELinux is preventing plugin-containe from 'write' accesses on the file 2.jpg.

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

If нужно использовать пакет plugin
Then необходимо отключить контроль SELinux для дополнительных модулей Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

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

If вы считаете, что plugin-containe следует разрешить доступ write к 2.jpg file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c plugin-containe --raw | 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                2.jpg [ file ]
Source                        plugin-containe
Source Path                   plugin-containe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.11.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.6-300.fc23.i686 #1 SMP Wed Mar
                              16 22:48:22 UTC 2016 i686 i686
Alert Count                   1
First Seen                    2016-03-28 22:45:14 EEST
Last Seen                     2016-03-28 22:45:14 EEST
Local ID                      cbd18185-f784-4483-a643-7b4a87f33ee3

Raw Audit Messages
type=AVC msg=audit(1459194314.223:482): avc:  denied  { write } for  pid=30985 comm="plugin-containe" name="2.jpg" dev="sda3" ino=1707491 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


Hash: plugin-containe,mozilla_plugin_t,user_home_t,file,write

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

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.7-300.fc23.i686
type:           libreport

Potential duplicate: bug 678136

Comment 1 Lukas Vrabec 2016-04-25 08:49:22 UTC
*****  Plugin mozplugger (99.1 confidence) suggests   ************************

If нужно использовать пакет plugin
Then необходимо отключить контроль SELinux для дополнительных модулей Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0