diff options
author | smitsohu <smitsohu@gmail.com> | 2020-11-24 15:04:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 15:04:49 +0100 |
commit | fce35bbdef419406ca78eb93825462092a530300 (patch) | |
tree | b7125116b8d86f1684d37e735ae1a0875a00bb53 /src | |
parent | disable dbus in QMediathekView (#3771) (diff) | |
download | firejail-fce35bbdef419406ca78eb93825462092a530300.tar.gz firejail-fce35bbdef419406ca78eb93825462092a530300.tar.zst firejail-fce35bbdef419406ca78eb93825462092a530300.zip |
fix hidepid mount detection
kernel >= 5.8 now translates mode "1" to "noaccess" and mode "2" to "invisible", which breaks
Firejail's hidepid detection
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
277 | if (strstr(buf, "proc /proc proc")) { | 277 | if (strstr(buf, "proc /proc proc")) { |
278 | fclose(fp); | 278 | fclose(fp); |
279 | // check hidepid | 279 | // check hidepid |
280 | if (strstr(buf, "hidepid=2") || strstr(buf, "hidepid=1")) | 280 | if (strstr(buf, "hidepid=")) |
281 | return 1; | 281 | return 1; |
282 | return 0; | 282 | return 0; |
283 | } | 283 | } |