From fce35bbdef419406ca78eb93825462092a530300 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Tue, 24 Nov 2020 15:04:49 +0100 Subject: fix hidepid mount detection kernel >= 5.8 now translates mode "1" to "noaccess" and mode "2" to "invisible", which breaks Firejail's hidepid detection --- src/lib/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/common.c b/src/lib/common.c index 1fd317d4f..872772ec7 100644 --- a/src/lib/common.c +++ b/src/lib/common.c @@ -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; } -- cgit v1.2.3-54-g00ecf