Bug 751194 - SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper from ioctl access on the chr_file /dev/nvidiactl
Summary: SELinux is preventing /usr/libexec/gnome-session-check-accelerated-helper fro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-03 20:01 UTC by cornel panceac
Modified: 2011-11-10 17:30 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.10.0-55.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-10 17:30:48 UTC
Type: ---


Attachments (Terms of Use)

Description cornel panceac 2011-11-03 20:01:28 UTC
Description of problem:
gdm is no longer starting because selinux prevents gnome-session-check-accelerated-helper from accessing  /dev/nvidiactl

Version-Release number of selected component (if applicable):
selinux-policy-3.10.0-46.fc16.noarch

How reproducible:
always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
putting selinux in permissive mode allows gdm to start

# grep gnome-session-c /var/log/audit/audit.log

type=AVC msg=audit(1320360668.316:60): avc:  denied  { ioctl } for  pid=1339 comm="gnome-session-c" path="/dev/nvidiactl" dev=devtmpfs ino=20568 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1320360668.316:60): arch=40000003 syscall=54 success=yes exit=0 a0=4 a1=c04846d2 a2=bff6ac08 a3=c04846d2 items=0 ppid=1338 pid=1339 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)

Comment 1 Miroslav Grepl 2011-11-04 11:31:35 UTC
This is fixed in selinux-policy-3.10.0-52.fc16

But we also need you to update to the latest libsepol.

libsepol-2.1.3-2.fc16


You can download packages from koji for now 

http://koji.fedoraproject.org/koji/

Comment 2 cornel panceac 2011-11-05 05:49:57 UTC
Unfortunately the update requires updated selinux-policy-targeted which i didn't found neither in koji or updates-testing repo.

Comment 4 Fedora Update System 2011-11-08 14:06:10 UTC
selinux-policy-3.10.0-55.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-55.fc16

Comment 5 Fedora Update System 2011-11-10 17:30:48 UTC
selinux-policy-3.10.0-55.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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