diff options
-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) { |