Nvidia and selinux

Mark Eggers mdeggers at earthlink.net
Sat Jun 16 22:55:59 UTC 2007

I've actually had three issues when running NVidia's drivers on Fefora 7.

1. Modules cannot be found.
As noted in other mail messages, the following addition to the xorg.conf file will fix this:

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        ModulePath   "/usr/X11R6/lib/modules"

The ModulePath lines appear to get deleted every time there is an Xorg update.  I have placed my xorg.conf under RCS and just restore it from there (after checking for other changes with rcsdiff).

2. Running SELinux in permissive mode generates the following warning for nvidia_drv.so:

requires text relocation (in part)

According the the rest of the alert, this can be fixed by:

chcon -t textrel_shlib_t /usr/X11R6/lib/modules/drivers/nvidia_drv.so

This should probably be reported to NVidia (if not already done so).

3. Running SELinux in permissive mode also generates the following warning during installation.

SELinux is preventing /sbin/ldconfig (ldconfig_t) "write" to /var/log/nvidia-installer.log (var_log_t).

The fix is:

restorecon /var/log/nvidia-installer.log

This is probably a bug in the installation scripts and should be reported to NVidia as well.

Again, I'm running permissive and targeted, so there may be additional issues if you're running enforcing and strict.



-----Original Message-----
> Since today's update, i can't run nvidia drivers without adding selinux=0 to the 
> kernel parameters. Without this the x server don't start : 

More information about the fedora-list mailing list