Bug 723001

Summary: SELinux is preventing /usr/libexec/gstreamer-0.10/gst-plugin-scanner from 'create' accesses on the fichier orcexec.wnguUk.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:23af1808e0e90f535873e156b1af25264136b86171a2ad26599455d4be95871d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-21 16:54:27 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 2011-07-18 17:59:12 UTC
SELinux is preventing /usr/libexec/gstreamer-0.10/gst-plugin-scanner from 'create' accesses on the fichier orcexec.wnguUk.

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

If you believe that gst-plugin-scanner should be allowed create access on the orcexec.wnguUk 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 gst-plugin-scan /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_dir_t:s0
Target Objects                orcexec.wnguUk [ file ]
Source                        gst-plugin-scan
Source Path                   /usr/libexec/gstreamer-0.10/gst-plugin-scanner
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           gstreamer-0.10.35-1.fc16
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-4.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.0-0.rc7.git3.1.fc16.x86_64 #1
                              SMP Fri Jul 15 22:56:12 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    dim. 17 juil. 2011 21:14:25 CEST
Last Seen                     dim. 17 juil. 2011 21:14:25 CEST
Local ID                      f7891e72-fffb-454c-95a0-a9a4f217a382

Raw Audit Messages
type=AVC msg=audit(1310930065.639:815): avc:  denied  { create } for  pid=7871 comm="gst-plugin-scan" name="orcexec.wnguUk" scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=AVC msg=audit(1310930065.639:815): avc:  denied  { read write open } for  pid=7871 comm="gst-plugin-scan" name="orcexec.wnguUk" dev=dm-0 ino=46963 scontext=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=file


type=SYSCALL msg=audit(1310930065.639:815): arch=x86_64 syscall=open success=yes exit=ENXIO a0=1d334c0 a1=c2 a2=180 a3=73 items=0 ppid=7858 pid=7871 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm=gst-plugin-scan exe=/usr/libexec/gstreamer-0.10/gst-plugin-scanner subj=unconfined_u:unconfined_r:mozilla_plugin_t:s0-s0:c0.c1023 key=(null)

Hash: gst-plugin-scan,mozilla_plugin_t,user_home_dir_t,file,create

audit2allow

#============= mozilla_plugin_t ==============
#!!!! The source type 'mozilla_plugin_t' can write to a 'file' of the following types:
# pulseaudio_home_t, mozilla_plugin_tmpfs_t, gnome_home_type, mozilla_plugin_tmp_t, nsplugin_home_t, user_fonts_cache_t

allow mozilla_plugin_t user_home_dir_t:file { read write create open };

audit2allow -R

#============= mozilla_plugin_t ==============
#!!!! The source type 'mozilla_plugin_t' can write to a 'file' of the following types:
# pulseaudio_home_t, mozilla_plugin_tmpfs_t, gnome_home_type, mozilla_plugin_tmp_t, nsplugin_home_t, user_fonts_cache_t

allow mozilla_plugin_t user_home_dir_t:file { read write create open };

Comment 1 Daniel Walsh 2011-07-18 21:23:23 UTC
This looks like alabeling problem.

restorecon -R -v ~/

Comment 2 Daniel Walsh 2011-07-18 21:23:54 UTC
*** Bug 723002 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2011-07-18 21:24:10 UTC
*** Bug 723003 has been marked as a duplicate of this bug. ***