Bug 746212

Summary: SELinux is preventing /usr/bin/gnome-shell from 'execute' accesses on the file /usr/bin/groovyConsole.
Product: [Fedora] Fedora Reporter: Ankur Sinha (FranciscoD) <sanjay.ankur>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: browning48ky, dominick.grift, dwalsh, maxamillion, mgrepl, otaylor, samkraju, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8917f7261ac7dcc8109b8b02b2140841478e33d8f0fab329267181958eeaa442
Fixed In Version: selinux-policy-3.10.0-40.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 04:32:49 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 Ankur Sinha (FranciscoD) 2011-10-14 11:22:22 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-0.rc9.git0.0.fc16.x86_64
reason:         SELinux is preventing /usr/bin/gnome-shell from 'execute' accesses on the file /usr/bin/groovyConsole.
time:           Fri Oct 14 16:52:24 2011

description:
:SELinux is preventing /usr/bin/gnome-shell from 'execute' accesses on the file /usr/bin/groovyConsole.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/usr/bin/groovyConsole default label should be bin_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /usr/bin/groovyConsole
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that gnome-shell should be allowed execute access on the groovyConsole 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 gnome-shell /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:java_exec_t:s0
:Target Objects                /usr/bin/groovyConsole [ file ]
:Source                        gnome-shell
:Source Path                   /usr/bin/gnome-shell
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gnome-shell-3.2.0-2.fc16
:Target RPM Packages           groovy-1.8.2-1.fc16
:Policy RPM                    selinux-policy-3.10.0-38.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-0.rc9.git0.0.fc16.x86_64 #1
:                              SMP Wed Oct 5 15:30:54 UTC 2011 x86_64 x86_64
:Alert Count                   7
:First Seen                    Fri 14 Oct 2011 04:10:03 PM IST
:Last Seen                     Fri 14 Oct 2011 04:25:41 PM IST
:Local ID                      7a42234d-e3c4-436e-91a8-bc579b497d2c
:
:Raw Audit Messages
:type=AVC msg=audit(1318589741.513:80): avc:  denied  { execute } for  pid=1519 comm="gnome-shell" name="groovyConsole" dev=sda6 ino=1607232 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:java_exec_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1318589741.513:80): arch=x86_64 syscall=access success=no exit=EACCES a0=163e2b4 a1=1 a2=6e69622f7273752f a3=1 items=0 ppid=1420 pid=1519 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=1 comm=gnome-shell exe=/usr/bin/gnome-shell subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gnome-shell,xdm_t,java_exec_t,file,execute
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t java_exec_t:file execute;
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t java_exec_t:file execute;
:

Comment 1 Miroslav Grepl 2011-10-14 11:40:40 UTC
We have the same bug for vlc. 

Do you know what you were doing when this happened?

Comment 2 Miroslav Grepl 2011-10-14 11:57:49 UTC
Were you using yumex?

Comment 3 Ankur Sinha (FranciscoD) 2011-10-14 12:01:38 UTC
Hi Miroslav,

No. I do not have yumex installed. I didn't do anything out of the ordinary. In fact, I haven't even used vlc since I installed it. 

Thanks,
Ankur

Comment 4 Miroslav Grepl 2011-10-14 12:16:21 UTC
Any idea what does gnome-shell do?

Comment 5 Daniel Walsh 2011-10-14 13:14:20 UTC
Since this is an access check, I think gnome-shell is just running through all executables and doing an access(FILE,X_OK)

Comment 6 Daniel Walsh 2011-10-14 13:22:52 UTC
Added dontaudit access_check

selinux-policy-3.10.0-40.fc16

Comment 7 Fedora Update System 2011-10-14 16:19:33 UTC
selinux-policy-3.10.0-40.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-40.fc16

Comment 8 Fedora Update System 2011-10-15 14:33:11 UTC
Package selinux-policy-3.10.0-40.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-40.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14363
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2011-10-19 04:32:49 UTC
selinux-policy-3.10.0-40.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.