Bug 679257 - SELinux is preventing /usr/bin/python from 'execute' accesses on the file /tmp/orcexec.6gxTxj (deleted).
Summary: SELinux is preventing /usr/bin/python from 'execute' accesses on the file /tm...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:c5e8f5a3f0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 03:59 UTC by Iván Jiménez
Modified: 2011-02-23 21:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-22 09:47:51 UTC
Type: ---


Attachments (Terms of Use)

Description Iván Jiménez 2011-02-22 03:59:29 UTC
SELinux is preventing /usr/bin/python from 'execute' accesses on the file /tmp/orcexec.6gxTxj (deleted).

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow_xguest_exec_content
Then you must tell SELinux about this by enabling the 'allow_xguest_exec_content' boolean.
Do
setsebool -P allow_xguest_exec_content 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that python should be allowed execute access on the orcexec.6gxTxj (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 applet.py /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                xguest_u:xguest_r:xguest_t:s0
Target Context                xguest_u:object_r:user_tmp_t:s0
Target Objects                /tmp/orcexec.6gxTxj (deleted) [ file ]
Source                        applet.py
Source Path                   /usr/bin/python
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           gstreamer-0.10.31-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64 #1
                              SMP Mon Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    vie 28 ene 2011 22:24:18 COT
Last Seen                     jue 17 feb 2011 10:28:24 COT
Local ID                      8774fdd0-a924-4a3e-a276-e355fef13bc0

Raw Audit Messages
type=AVC msg=audit(1297956504.548:26): avc:  denied  { execute } for  pid=1975 comm="gst-plugin-scan" path=2F746D702F6F7263657865632E36677854786A202864656C6574656429 dev=tmpfs ino=29662 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=xguest_u:object_r:user_tmp_t:s0 tclass=file


type=SYSCALL msg=audit(1297956504.548:26): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=10000 a2=5 a3=1 items=0 ppid=1972 pid=1975 auid=513 uid=513 gid=513 euid=513 suid=513 fsuid=513 egid=513 sgid=513 fsgid=513 tty=(none) ses=1 comm=gst-plugin-scan exe=/usr/libexec/gstreamer-0.10/gst-plugin-scanner subj=xguest_u:xguest_r:xguest_t:s0 key=(null)

Hash: applet.py,xguest_t,user_tmp_t,file,execute

audit2allow

#============= xguest_t ==============
#!!!! This avc can be allowed using the boolean 'allow_xguest_exec_content'

allow xguest_t user_tmp_t:file execute;

audit2allow -R

#============= xguest_t ==============
#!!!! This avc can be allowed using the boolean 'allow_xguest_exec_content'

allow xguest_t user_tmp_t:file execute;

Comment 1 Miroslav Grepl 2011-02-22 09:47:51 UTC
Why do you think this is a bug? Sealert tells you what to do.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow_xguest_exec_content
Then you must tell SELinux about this by enabling the
'allow_xguest_exec_content' boolean.
Do

setsebool -P allow_xguest_exec_content 1

Comment 2 Iván Jiménez 2011-02-22 19:17:34 UTC
(In reply to comment #1)
> Why do you think this is a bug? Sealert tells you what to do.

It appears every time a normal user logs in after guest has logged in, so maybe it should be allowed by default.

Comment 3 Daniel Walsh 2011-02-23 21:14:27 UTC
Who is creating this /tmp/orcexec.6gxTxj
?


Why would xguest want to execute a random file in /tmp?


Note You need to log in before you can comment on or make changes to this bug.