Skip to content

Commit

Permalink
fix hidepid mount detection
Browse files Browse the repository at this point in the history
kernel >= 5.8 now translates mode "1" to "noaccess" and mode "2" to "invisible", which breaks
Firejail's hidepid detection
  • Loading branch information
smitsohu committed Nov 24, 2020
1 parent b3247d0 commit fce35bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ int pid_hidepid(void) {
if (strstr(buf, "proc /proc proc")) {
fclose(fp);
// check hidepid
if (strstr(buf, "hidepid=2") || strstr(buf, "hidepid=1"))
if (strstr(buf, "hidepid="))
return 1;
return 0;
}
Expand Down

0 comments on commit fce35bb

Please sign in to comment.