Bug 789411 - SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the None /opt/VBoxGuestAdditions-4.1.8/lib/VBoxOGL.so.
Summary: SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper fro...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b1a1e547af495f4c401d2a8d2b5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 17:50 UTC by Devon Janitz
Modified: 2012-02-15 08:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-13 09:48:54 UTC
Type: ---


Attachments (Terms of Use)

Description Devon Janitz 2012-02-10 17:50:09 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.2.3-2.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the None /opt/VBoxGuestAdditions-4.1.8/lib/VBoxOGL.so.
time:           Fri 10 Feb 2012 12:49:58 PM EST

description:
:SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from 'execute' accesses on the None /opt/VBoxGuestAdditions-4.1.8/lib/VBoxOGL.so.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gnome-session-check-accelerated-helper should be allowed execute access on the VBoxOGL.so <Unknown> 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.8/lib/VBoxOGL.so [
:                              None ]
: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.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-75.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.2.3-2.fc16.x86_64
:                              #1 SMP Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    Fri 10 Feb 2012 12:39:29 PM EST
:Last Seen                     Fri 10 Feb 2012 12:41:17 PM EST
:Local ID                      6717e8ee-6c62-4751-a2cf-c5c309452cf8
:
:Raw Audit Messages
:type=AVC msg=audit(1328895677.571:88): avc:  denied  { execute } for  pid=1917 comm="gnome-session-c" path="/opt/VBoxGuestAdditions-4.1.8/lib/VBoxOGL.so" dev=dm-1 ino=3145768 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:usr_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328895677.571:88): arch=c000003e syscall=9 success=yes exit=140176151863296 a0=0 a1=218f08 a2=5 a3=802 items=0 ppid=1916 pid=1917 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=3 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,None,execute
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-13 09:48:54 UTC
You need to change a label VBoxOGL.so

$ chcon -t lib_t /lib/VBoxOGL.so

but better solution would be the following

$ semanage fcontext -a -e /lib /opt/VBoxGuestAdditions-4.1.8/lib
$ restorecon -R -v /opt/VBoxGuestAdditions-4.1.8/lib

It tells SELinux to label /opt/VBoxGuestAdditions-4.1.8/lib as lib_t.

Comment 2 Devon Janitz 2012-02-13 15:39:06 UTC
Was not completely smooth, but you did get enough information to me to get it working.

First I ran your Better Solution from above and that did not correct the problem by itself.

So I also added the first item above with an error message about file missing I believe.
$ chcon -t lib_t /opt/VBoxGuestAdditions-4.1.8/lib/VBoxOGL.so instead of 
$ chcon -t lib_t /lib/VBoxOGL.so
if that makes a difference?  Guessing it is just a path difference?

Thanks very much!
Devon

Comment 3 Daniel Walsh 2012-02-13 17:05:48 UTC
Best solution would have been

restorecon -R -v /opt

Since I believe the labeling should have been correct there in the first place.

Comment 4 Miroslav Grepl 2012-02-15 08:37:55 UTC
Ah, I apologize. I used matchpathcon on F14 machine by accident. So how Dan wrote, just use restorecon

$ restorecon -R -v /opt


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