Bug 1263704

Summary: SELinux is preventing /usr/lib64/firefox/plugin-container from 'read' accesses on the file /etc/crontab.
Product: [Fedora] Fedora Reporter: antonio montagnani <antonio.montagnani>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c2c137180e23d5d7a83ed32ff3ceecb4f23d4ecd6e01ad4e448918fcff202ff7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-22 09:14:09 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 antonio montagnani 2015-09-16 13:12:11 UTC
Description of problem:
no idea, playing some radio stream online
SELinux is preventing /usr/lib64/firefox/plugin-container from 'read' accesses on the file /etc/crontab.

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

If si vuole usare il pacchetto plugin
Then disabilitare i controlli SELinux sui plugin di Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0

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

If si crede che plugin-container dovrebbe avere possibilità di accesso read sui crontab file in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per il momento eseguendo:
# grep pool /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                system_u:object_r:system_cron_spool_t:s0
Target Objects                /etc/crontab [ file ]
Source                        pool
Source Path                   /usr/lib64/firefox/plugin-container
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           firefox-40.0.3-1.fc22.x86_64
Target RPM Packages           crontabs-1.11-9.20130830git.fc22.noarch
Policy RPM                    selinux-policy-3.13.1-128.12.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.6-201.fc22.x86_64 #1 SMP Fri
                              Sep 4 17:49:24 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-09-16 15:10:35 CEST
Last Seen                     2015-09-16 15:10:35 CEST
Local ID                      d10a7c30-a215-497a-ad95-bb7a8b6f82e0

Raw Audit Messages
type=AVC msg=audit(1442409035.34:601): avc:  denied  { read } for  pid=6476 comm="pool" name="crontab" dev="dm-1" ino=1704499 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:system_cron_spool_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1442409035.34:601): arch=x86_64 syscall=open success=no exit=EACCES a0=7fd6f8691cf0 a1=40000 a2=0 a3=0 items=0 ppid=5189 pid=6476 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=1 comm=pool exe=/usr/lib64/firefox/plugin-container subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: pool,mozilla_plugin_t,system_cron_spool_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-128.12.fc22.noarch

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.6-201.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2015-09-22 09:14:09 UTC
Either execute

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

If si vuole usare il pacchetto plugin
Then disabilitare i controlli SELinux sui plugin di Firefox.
Do
# setsebool -P unconfined_mozilla_plugin_transition 0


or you can dontaudit it using 


# grep pool /var/log/audit/audit.log | audit2allow -D -M mypol
# semodule -i mypol.pp