Bug 1033458

Summary: SELinux is preventing /usr/bin/gtk-gnash from 'write' accesses on the directory /dev/shm.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE 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:91b722ca120f6775ab764cf383798c503bfa5afd4b0598340038104be7eeefd2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-22 10:11:15 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:08:58 UTC
Description of problem:
SELinux is preventing /usr/bin/gtk-gnash from 'write' accesses on the directory /dev/shm.

*****  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 write sur shm directory 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                system_u:object_r:device_t:s0
Target Objects                /dev/shm [ dir ]
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                   10
First Seen                    2013-11-16 21:59:05 CET
Last Seen                     2013-11-18 19:21:04 CET
Local ID                      633b7d5c-7439-4069-9b9e-9ca8bf7e0d5b

Raw Audit Messages
type=AVC msg=audit(1384798864.50:222): avc:  denied  { write } for  pid=3033 comm="gtk-gnash" name="/" dev="tmpfs" ino=6783 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=dir


type=SYSCALL msg=audit(1384798864.50:222): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffcf83ad20 a1=a00c2 a2=1c0 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,dir,write

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

*** This bug has been marked as a duplicate of bug 1033459 ***