mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
parent
2b0fe97595
commit
623e682168
1 changed files with 7 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue