nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   (SELinux) /dev/nvidia and /dev/nvidiactl are labelled incorrectly on Fedora 13 (http://www.nvnews.net/vbulletin/showthread.php?t=156182)

Dominor 10-17-10 07:34 PM

(SELinux) /dev/nvidia and /dev/nvidiactl are labelled incorrectly on Fedora 13
 
1 Attachment(s)
On Fedora Linux 13, whether one installs the nvidia driver through the official installer from nvidia or from the rpms provided by the rpmfusion fedora repository, the devices /dev/nvidia0 and /dev/nvidiactl are incorrectly labelled as system_u:object_r:device_t:s0. Instead, they should be labelled as system_u:object_r:xserver_misc_device_t:s0, as predefined in the installed selinux policy. This causes applications such as boinc based distributed computing projects to be unable to detect the nvidia graphics card and access its CUDA library.
This issue has already been reported by me and other users on rpmfusion and fedora bugzilla and no one seems to know how to create these two devices with the correct label, in order to allow read and write access to them.

Bug reports with more details:
https://bugzilla.redhat.com/show_bug.cgi?id=595092
https://bugzilla.redhat.com/show_bug.cgi?id=596573
https://bugzilla.rpmfusion.org/show_bug.cgi?id=1421

phil@elrepo 11-21-10 11:07 AM

Re: (SELinux) /dev/nvidia and /dev/nvidiactl are labelled incorrectly on Fedora 13
 
Creating the following file should solve the issue:

/etc/udev/makedev.d/60-nvidia.nodes

Code:

nvidia0
nvidia1
nvidia2
nvidia3
nvidia4
nvidia5
nvidia6
nvidia7
nvidia8
nvidia9
nvidiactl

and allow the device nodes to be created with the correct SELinux security contexts.


All times are GMT -5. The time now is 02:05 AM.

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