mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
Make nogroups work on nvidia again
Remove workaround from commit623e68216("temporary fix for nvidia/nogroups/noroot issue (#3644, #841)", 2020-10-02) and from commitcb460c32c("more nvidia (#3644)", 2020-10-03). The handling of the "render" and "video" groups is separate from `nogroups` now, so disabling `nogroups` on nvidia shouldn't be necessary anymore. See the previous 2 commits for details. See also the discussion on PR #4632.
This commit is contained in:
parent
a72f536122
commit
6ddedeba01
1 changed files with 1 additions and 7 deletions
|
|
@ -416,13 +416,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
|
|||
return 0;
|
||||
}
|
||||
else if (strcmp(ptr, "nogroups") == 0) {
|
||||
// nvidia cards require video group; disable nogroups
|
||||
if (access("/dev/nvidiactl", R_OK) == 0 && arg_no3d == 0) {
|
||||
fwarning("Warning: NVIDIA card detected, nogroups command disabled\n");
|
||||
arg_nogroups = 0;
|
||||
}
|
||||
else
|
||||
arg_nogroups = 1;
|
||||
arg_nogroups = 1;
|
||||
return 0;
|
||||
}
|
||||
else if (strcmp(ptr, "nosound") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue