Bug 752612

Summary: SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the file /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so.
Product: [Fedora] Fedora Reporter: Duncan Calvert <calvert.dw>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:956a662907231cff250cd29f20feecc463cf85a8e3b873e293f97262242ae0e5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 08:14:47 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 Duncan Calvert 2011-11-09 23:55:53 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the file /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so.
time:           Wed Nov  9 17:48:56 2011

description:
:SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the file /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so.
:
:*****  Plugin restorecon (94.8 confidence) suggests  *************************
:
:If you want to fix the label. 
:/opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so default label should be textrel_shlib_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so
:
:*****  Plugin catchall_labels (5.21 confidence) suggests  ********************
:
:If you want to allow gnome-session-check-accelerated-helper to have execute access on the VBoxOGL.so file
:Then you need to change the label on /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so
:Do
:# semanage fcontext -a -t FILE_TYPE '/opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so'
:where FILE_TYPE is one of the following: init_exec_t, shutdown_exec_t, textrel_shlib_t, alsa_exec_t, consoletype_exec_t, xdm_exec_t, policykit_auth_exec_t, pam_console_exec_t, bin_t, lib_t, etc_t, xserver_exec_t, dbusd_exec_t, loadkeys_exec_t, plymouth_exec_t, xauth_exec_t, ssh_agent_exec_t, mount_exec_t, shell_exec_t, rpm_exec_t, pulseaudio_exec_t, oddjob_mkhomedir_exec_t, pam_exec_t, systemd_systemctl_exec_t, fusermount_exec_t, updpwd_exec_t, xdm_tmp_t, lib_t, chkpwd_exec_t, ld_so_t, hostname_exec_t, abrt_helper_exec_t, gkeyringd_exec_t, xsession_exec_t, systemd_systemctl_exec_t. 
:Then execute: 
:restorecon -v '/opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so'
:
:
:*****  Plugin catchall (1.44 confidence) suggests  ***************************
:
:If you believe that gnome-session-check-accelerated-helper should be allowed execute access on the VBoxOGL.so 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-session-c /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                unconfined_u:object_r:usr_t:s0
:Target Objects                /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so [
:                              file ]
:Source                        gnome-session-c
:Source Path                   /usr/libexec/gnome-session-check-accelerated-
:                              helper
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           gnome-session-3.2.1-2.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-51.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-7.fc16.x86_64 #1
:                              SMP Tue Nov 1 21:10:48 UTC 2011 x86_64 x86_64
:Alert Count                   2
:First Seen                    Wed 09 Nov 2011 05:42:41 PM CST
:Last Seen                     Wed 09 Nov 2011 05:44:53 PM CST
:Local ID                      91fd3a6f-224c-4366-beb6-9def552d2787
:
:Raw Audit Messages
:type=AVC msg=audit(1320882293.693:52): avc:  denied  { execute } for  pid=1055 comm="gnome-session-c" path="/opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so" dev=sda2 ino=814747 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:usr_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1320882293.693:52): arch=x86_64 syscall=mmap success=no exit=EACCES a0=0 a1=213688 a2=5 a3=802 items=0 ppid=1054 pid=1055 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=1 comm=gnome-session-c exe=/usr/libexec/gnome-session-check-accelerated-helper subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)
:
:Hash: gnome-session-c,xdm_t,usr_t,file,execute
:
:audit2allow
:
:#============= xdm_t ==============
:allow xdm_t usr_t:file execute;
:
:audit2allow -R
:
:#============= xdm_t ==============
:allow xdm_t usr_t:file execute;
:

Comment 1 Miroslav Grepl 2011-11-10 08:14:47 UTC
If you want to fix the label. 
/opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so default label should be
extrel_shlib_t.
Then you can run restorecon.
Do

# /sbin/restorecon -v /opt/VBoxGuestAdditions-4.1.4/lib/VBoxOGL.so