diff options
author | 2020-10-02 13:17:14 -0400 | |
---|---|---|
committer | 2020-10-02 13:17:14 -0400 | |
commit | 623e6821687b848d6bb6f78a9deb682746df24ce (patch) | |
tree | c06a428b0e63b0989b9706b3d5c0b454e0b6d2a0 | |
parent | profstats - add count for whitelisted home dir, dbus-user none (diff) | |
download | firejail-623e68216.tar.gz firejail-623e68216.tar.zst firejail-623e68216.zip |
-rw-r--r-- | src/firejail/profile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 793171e1f..bed9bcc7e 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -402,7 +402,13 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
402 | return 0; | 402 | return 0; |
403 | } | 403 | } |
404 | else if (strcmp(ptr, "nogroups") == 0) { | 404 | else if (strcmp(ptr, "nogroups") == 0) { |
405 | arg_nogroups = 1; | 405 | // nvidia cards require video group; disable nogroups |
406 | if (access("/dev/nvidiactl", R_OK) == 0) { | ||
407 | fwarning("Warning: NVIDIA card detected, nogroups command disabled\n"); | ||
408 | arg_nogroups = 0; | ||
409 | } | ||
410 | else | ||
411 | arg_nogroups = 1; | ||
406 | return 0; | 412 | return 0; |
407 | } | 413 | } |
408 | else if (strcmp(ptr, "nosound") == 0) { | 414 | else if (strcmp(ptr, "nosound") == 0) { |