Bug 723003

Summary: SELinux is preventing /usr/libexec/gstreamer-0.10/gst-plugin-scanner from 'execute' accesses on the fichier /home/nim/orcexec.wnguUk (deleted).
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: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e9db4b387c54b87f54a2db6aa1caf404ce263b1b0534ecc2c31d5abeb9086955
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-18 21:24:10 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 18:00:29 UTC
SELinux is preventing /usr/libexec/gstreamer-0.10/gst-plugin-scanner from 'execute' accesses on the fichier /home/nim/orcexec.wnguUk (deleted).

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/home/nim/orcexec.wnguUk (deleted) default label should be user_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/nim/orcexec.wnguUk (deleted)

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that gst-plugin-scanner should be allowed execute access on the orcexec.wnguUk (deleted) 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                /home/nim/orcexec.wnguUk (deleted) [ 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                      49572160-df20-4d59-860a-48d165cb7d8a

Raw Audit Messages
type=AVC msg=audit(1310930065.640:817): avc:  denied  { execute } for  pid=7871 comm="gst-plugin-scan" path=2F686F6D652F6E696D2F6F7263657865632E776E6775556B202864656C6574656429 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.640:817): arch=x86_64 syscall=mmap success=yes exit=140493009428480 a0=0 a1=10000 a2=5 a3=1 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,execute

audit2allow

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:file execute;

audit2allow -R

#============= mozilla_plugin_t ==============
allow mozilla_plugin_t user_home_dir_t:file execute;

Comment 1 Daniel Walsh 2011-07-18 21:24:10 UTC

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