Bug 688799

Summary: SELinux is preventing /usr/bin/gtk-gnash from 'unlink' accesses on the file registry.x86_64.bin.
Product: [Fedora] Fedora Reporter: bill milks <wmilks>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:04aaa5fb27e9b8885d2df5b4e2b98c5d08b88ebdf2a6883f7b29df8352b3a445
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-18 11:11:51 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 bill milks 2011-03-18 03:42:39 UTC
SELinux is preventing /usr/bin/gtk-gnash from 'unlink' accesses on the file registry.x86_64.bin.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that gtk-gnash should be allowed unlink access on the registry.x86_64.bin file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# 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:user_home_t:s0
Target Objects                registry.x86_64.bin [ file ]
Source                        gtk-gnash
Source Path                   /usr/bin/gtk-gnash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnash-0.8.9-0.1.20110312git.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-0.rc5.git1.1.fc15.x86_64 #1 SMP Thu Feb 17
                              01:49:02 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Fri 18 Mar 2011 03:22:40 AM EDT
Last Seen                     Fri 18 Mar 2011 03:22:40 AM EDT
Local ID                      13ff439c-201e-4cce-8a6d-82b8273e2f79

Raw Audit Messages
type=AVC msg=audit(1300432960.352:462): avc:  denied  { unlink } for  pid=2329 comm="gtk-gnash" name="registry.x86_64.bin" dev=dm-0 ino=54818 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1300432960.352:462): arch=x86_64 syscall=rename success=yes exit=0 a0=21989b0 a1=1b57350 a2=0 a3=7fff2adf5bf0 items=0 ppid=2308 pid=2329 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 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,user_home_t,file,unlink

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file unlink;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_t:file unlink;

Comment 1 Miroslav Grepl 2011-03-18 11:11:51 UTC
Please update your F15 selinux-policy.