24 lines
697 B
Diff
24 lines
697 B
Diff
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
Date: Mon, 8 Apr 2013 14:51:47 +0200
|
|
Subject: apply ACL for nvidia device nodes
|
|
|
|
set ACL on nvidia devices (bnc#808319).
|
|
---
|
|
src/login/logind-acl.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/login/logind-acl.c b/src/login/logind-acl.c
|
|
index cb045a9..51093f2 100644
|
|
--- a/src/login/logind-acl.c
|
|
+++ b/src/login/logind-acl.c
|
|
@@ -240,6 +240,9 @@ int devnode_acl_all(struct udev *udev,
|
|
goto finish;
|
|
}
|
|
|
|
+ devnode_acl("/dev/nvidia0", flush, del, old_uid, add, new_uid);
|
|
+ devnode_acl("/dev/nvidiactl", flush, del, old_uid, add, new_uid);
|
|
+
|
|
finish:
|
|
if (e)
|
|
udev_enumerate_unref(e);
|