How to grant permission to tainted device

Kay Sievers kay.sievers at vrfy.org
Tue Jan 6 10:58:24 PST 2009


On Tue, Jan 6, 2009 at 05:39, Jim Carter <jimc at math.ucla.edu> wrote:
> I manage a student lab in which the machines have nVidia or ATI graphics
> cards.  Wanting 3D acceleration I use the evil proprietary drivers on
> them.  Neither of these drivers register themselves so that there is no
> trace of the 3D interface devices in sysfs (/dev/nvidia0, /dev/nvidiactl,
> /dev/dri/card0).  So I assume that HAL doesn't even know that the devices
> exist, unless someone tells it.
>
> In my previous distro version, OpenSuSE 10.3, they used resmgr and I
> simply provided a file in /etc/resmgr.conf.d that said
>    ongrant  video run /usr/local/sbin/resgrant
> (and similarly onrevoke); the script does chown $RES_USER $device (for
> the device actually on the machine).
>
> OpenSuSE 11.1 no longer includes resmgr.  An alternative is to put
> equivalent code into /etc/X11/xdm/GiveDevices or the equivalent for
> whatever display manager, but if that were the "right" way the distro
> would have done it, and they didn't.

No idea about the "right way". :) But you should be able to port the
resmgr stuff to /etc/ConsoleKit/run-session.d/.

Kay


More information about the polkit-devel mailing list