Bug 1033459

Summary: SELinux is preventing /usr/bin/gtk-gnash from 'read' accesses on the file pulse-shm-3082875261.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:ff56b90e2339738aa46edf69b175a84e83596a477b59594cddeeda579d7bbe71
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-22 10:12:16 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 Nicolas Mailhot 2013-11-22 07:09:13 UTC
Description of problem:
SELinux is preventing /usr/bin/gtk-gnash from 'read' accesses on the file pulse-shm-3082875261.

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

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

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

If vous pensez que gtk-gnash devrait être autorisé à accéder read sur pulse-shm-3082875261 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 gtk-gnash /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:device_t:s0
Target Objects                pulse-shm-3082875261 [ file ]
Source                        gtk-gnash
Source Path                   /usr/bin/gtk-gnash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnash-0.8.10-11.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-3.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.13.0-0.rc0.git6.1.fc21.x86_64 #1
                              SMP Sun Nov 17 17:01:17 UTC 2013 x86_64 x86_64
Alert Count                   32
First Seen                    2013-11-16 21:59:05 CET
Last Seen                     2013-11-18 19:21:04 CET
Local ID                      d32ed2ac-f876-4607-ae9b-6df50e5f6529

Raw Audit Messages
type=AVC msg=audit(1384798864.63:227): avc:  denied  { read } for  pid=3033 comm="gtk-gnash" name="pulse-shm-3082875261" dev="tmpfs" ino=25244 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:device_t:s0 tclass=file


type=SYSCALL msg=audit(1384798864.63:227): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffcf83ab10 a1=a0000 a2=0 a3=36e7bc1440 items=0 ppid=2362 pid=3033 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=2 tty=(none) comm=gtk-gnash exe=/usr/bin/gtk-gnash subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: gtk-gnash,mozilla_plugin_t,device_t,file,read

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.13.0-0.rc0.git10.1.fc21.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-11-22 10:11:15 UTC
*** Bug 1033458 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2013-11-22 10:12:16 UTC
Has been fixed in the latest rawhide build.

commit e8f7ae47ff2058f1033cc21026c905d0e2f0ebd4
Author: Miroslav Grepl <mgrepl>
Date:   Mon Nov 18 16:08:58 2013 +0100

    Add back /dev/shm labeling