Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 10-23-11, 03:19 PM   #1
goldmember
Registered User
 
Join Date: Sep 2005
Posts: 24
Default Nvidia 290.03 crashes GDM 3.2.1.1

With Geforce 9500 GT I'm unable to login using the newest version of GDM shipping with Fedora 16 (release candiate). When starting GDM only shows an error dialog and then closes without getting to the login prompt. It works fine with the Nouveau drivers. GDM 3.2 comes with a new OpenGL based touch friendly interface, much like Gnome shell.
Attached Files
File Type: gz nvidia-bug-report.log.gz (83.2 KB, 34 views)
goldmember is offline   Reply With Quote
Old 10-23-11, 11:51 PM   #2
Plagman
NVIDIA Corporation
 
Plagman's Avatar
 
Join Date: Sep 2007
Posts: 254
Default Re: Nvidia 290.03 crashes GDM 3.2.1.1

This might be the same issue as Flash crashing on startup when using OpenGL; if you can run gdm inside a debugger and get a backtrace it would help a lot confirming that it is in fact the case.
Plagman is offline   Reply With Quote
Old 10-24-11, 02:28 AM   #3
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: Nvidia 290.03 crashes GDM 3.2.1.1

Quote:
Originally Posted by goldmember View Post
With Geforce 9500 GT I'm unable to login using the newest version of GDM shipping with Fedora 16 (release candiate). When starting GDM only shows an error dialog and then closes without getting to the login prompt. It works fine with the Nouveau drivers. GDM 3.2 comes with a new OpenGL based touch friendly interface, much like Gnome shell.
Check for selinx denials in /var/log/messages as 290.03 works ok here in F16.


http://forums.fedoraforum.org/showthread.php?t=270359
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 10-24-11, 04:02 AM   #4
goldmember
Registered User
 
Join Date: Sep 2005
Posts: 24
Default Re: Nvidia 290.03 crashes GDM 3.2.1.1

The problem was definitely SELinux related. GDM was unable to access /dev/nvidiactl, so this could hint to a labeling problem of nvidiactl. I tried it on an updated and a fresh Fedora 16 install and it happened in both cases. Doesn't the NVIDIA installer normally set appropriate exceptions for SELinux? If that's the case, there might be some missing.

Workarounds
1) running GDM as root
2) setenforce 0
3) manually create a policy file. here is the one i've used:


module mypol 1.0;

require {
type device_t;
type xdm_t;
class chr_file { read write ioctl open };
}

#============= xdm_t ==============
#!!!! The source type 'xdm_t' can write to a 'chr_file' of the following types:
# event_device_t, console_device_t, sound_device_t, xserver_misc_device_t, null_device_t, zero_device_t, agp_device_t, apm_bios_t, usb_device_t, devtty_t, virtio_device_t, v4l_device_t, tty_device_t, zero_device_t, dri_device_t

allow xdm_t device_t:chr_file { read write ioctl open };

----
audit.log shows the following (snipplet):
type=AVC msg=audit(1319444701.284:318): avc: denied { open } for pid=2672 comm="gnome-session-c" name="nvidiactl" dev=devtmpfs ino=16116 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_ubject_r:device_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1319444701.284:318): arch=c000003e syscall=2 success=yes exit=4 a0=7fff9eb98880 a1=2 a2=7fff9eb9888e a3=7fff9eb98210 items=0 ppid=2671 pid=2672 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=6 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)
type=AVC msg=audit(1319444701.285:319): avc: denied { ioctl } for pid=2672 comm="gnome-session-c" path="/dev/nvidiactl" dev=devtmpfs ino=16116 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_ubject_r:device_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1319444701.285:319): arch=c000003e syscall=16 success=yes exit=0 a0=4 a1=c04846d2 a2=7fff9eb98900 a3=7fff9eb98210 items=0 ppid=2671 pid=2672 auid=42 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=6 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)
type=AVC msg=audit(1319444760.067:524): avc: denied { read write } for pid=2800 comm="gnome-session-c" name="nvidiactl" dev=devtmpfs ino=16116 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_ubject_r:device_t:s0 tclass=chr_file
goldmember is offline   Reply With Quote
Old 10-24-11, 08:43 AM   #5
leigh123linux
Registered User
 
leigh123linux's Avatar
 
Join Date: Feb 2008
Posts: 163
Default Re: Nvidia 290.03 crashes GDM 3.2.1.1

Fedora wont fix this selinux issue with nvidia.

https://bugzilla.redhat.com/show_bug.cgi?id=694918
__________________
leigh123linux
leigh123linux is offline   Reply With Quote
Old 10-24-11, 01:40 PM   #6
kwizart
Registered User
 
Join Date: Feb 2005
Location: Paris, France
Posts: 129
Default Re: Nvidia 290.03 crashes GDM 3.2.1.1

This may be related to the way the module creates the device:
https://bugzilla.rpmfusion.org/show_bug.cgi?id=1421#c7
The the device ends to be mislabeled with an unappropriated selinux context.
kwizart is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.