Skip to content

Commit

Permalink
temporary fix for nvidia/nogroups/noroot issue (netblue30#3644, netbl…
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Oct 2, 2020
1 parent 2b0fe97 commit 623e682
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/firejail/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,13 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
return 0;
}
else if (strcmp(ptr, "nogroups") == 0) {
arg_nogroups = 1;
// nvidia cards require video group; disable nogroups
if (access("/dev/nvidiactl", R_OK) == 0) {
fwarning("Warning: NVIDIA card detected, nogroups command disabled\n");
arg_nogroups = 0;
}
else
arg_nogroups = 1;
return 0;
}
else if (strcmp(ptr, "nosound") == 0) {
Expand Down

0 comments on commit 623e682

Please sign in to comment.