nvidia-driver-555/nvidia-graphics-drivers-555/debian/nvidia-kernel-common-555.udev
Ward from fusion-voyager-3 4a1a0cf39a initial push
2024-07-24 04:35:16 +03:00

11 lines
472 B
Plaintext

# Set ACLs for console users on /dev/nvidia*
# This is necessary until the driver uses some other form of auth
ENV{ACL_MANAGE}=="0", GOTO="nvidia_end"
DRIVER=="nvidia",ENV{NVIDIA_DEVICE}="1"
ENV{NVIDIA_DEVICE}!="1", GOTO="nvidia_end"
ENV{ACL_MANAGE}="1"
TEST!="/lib/libglib-2.0.so.0", GOTO="nvidia_end"
# apply ACL for all locally logged in users
TEST=="/var/run/ConsoleKit/database", RUN+="nvidia_helper --action=$env{ACTION} --device=$env{DEVNAME}"
LABEL="nvidia_end"