repost from Fedora list on problems with nVidia driver

Claude Jones <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Message-ID <[email protected]>
Below is parts of a thread that took place on the Fedora list regarding 
problems with the nVidia driver and Selinux. Forgive the crosspost, but I 
wanted to get the whole picture into this first post - I've added a comment 
at the end

Me:
> Installed the nVidia driver from Freshrpms on F7, along with the dkms > 
> package.  
> When I rebooted, I got a bunch of nVidia denied messages. Someone had 
> mentioned in another thread going to the nVidia forum and getting some 
> suggestions about dealing with selinux; I found the following page and tried 
> some of the suggestions - some of the commands pointed to files that didn't 
> exist: http://www.nvnews.net/vbulletin/showthread.php?t=72490
> Those didn't help.
> I turned selinux off, uninstalled the nVidia driver, and reinstalled it. Now 
> it appears to be working well with glxgears giving me nearly 3000 FPS.
> Can anyone suggest how to get selinux and the nVidia driver to play nice? 

Christopher Williams answered:

I got it to work with a little persistence.

I installed the Livna version of the driver, but I'll bet it's similar.
The post talks about the following 4 commands:

# chcon -t texrel_shlib_t /usr/lib/xorg/modules/drivers/nvidia_drv.so
# chcon -t
texrel_shlib_t /usr/lib/xorg/modules/extensions/libglx.so.1.0.9631
# chcon -t texrel_shlib_t /usr/lib/tls/libnvidia-tls.so.1
# chcon -t texrel_shlib_t /usr/lib/libGLcore.so.1.0.9631

Change them as follows:

# chcon -t texrel_shlib_t /usr/lib/xorg/modules/drivers/nvidia_drv.so
# chcon -t texrel_shlib_t /usr/lib/xorg/modules/extensions/libglx.so
# chcon -t texrel_shlib_t /usr/lib/xorg/modules/extensions/libGLcore.so

The command:
# chcon -t texrel_shlib_t /usr/lib/tls/libnvidia-tls.so.1

...didn't work for me as I could not locate this file, or anything like
it, on my system. If someone knows what happened to this file, I'd love
to hear about it!

Even without this, my system then came up just fine. I've not
successfully gotten to work on both my desktop and laptop.

Me:

I did two of those, but not the third. I'll go back and try that. 

It didn't work with the Freshrpms version of the driver. I did run all three 
commands as you suggested. I also found the location of the file for the 
fourth command and ran it. 

FYI - libnvidia-tls.so.1 is in:    /usr/lib/nvidia AND in /usr/lib/nvidia/tls
I ran the command on the first location and that didn't help, then ran it on 
the second, and that didn't help either. I found some suggestions on the 
freshrpms list about creating a file in /etc/udev/makedev.d/60-nvidia.nodes

That contains the nvidia devices :

nvidia0
nvidia1
nvidia2
nvidia3
nvidiactl

But that didn't work, either
I guess I'm going to try the Livna driver next, although I really like the 
combo of the freshrpms driver and dkms, which builds a new driver module 
automatically  each time I install a new kernel, upon reboot. I never have to 
worry about waiting a couple of days for the new kmod that way...

I uninstalled the freshrpms driver and installed the Livna one - now it works. 

I wish Livna could include the dkms package or, that freshrpms could fix the 
driver they provide. I have run out of time so I can't post this to the 
freshrpms list which I don't subscribe to as of yet. I'll try to find the 
time later today to do so, and I guess I should try an RFE to Livna to 
include dkms

***********************

I really prefer freshrpms for many reasons, not just the inclusion of dkms, 
and have switched to it exclusively for many months now rather than using 
Livna. I don't mix them - on extremely rare occasions, I enable Livna for a 
single package, otherwise, it's configured in my repo lists, but not enabled
-- 
Claude Jones
Brunswick, MD, USA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.