diff options
author | 2020-08-13 14:35:26 +0200 | |
---|---|---|
committer | 2020-08-13 14:35:26 +0200 | |
commit | 7c37406f7a08ad2f11aea795a2f0bd5268240c73 (patch) | |
tree | 31a59de412a486a37751f28755ed16b3d5a89775 /src | |
parent | Merge pull request #3573 from dandelionred/master (diff) | |
download | firejail-7c37406f7a08ad2f11aea795a2f0bd5268240c73.tar.gz firejail-7c37406f7a08ad2f11aea795a2f0bd5268240c73.tar.zst firejail-7c37406f7a08ad2f11aea795a2f0bd5268240c73.zip |
shutdown option hidepid fix
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/shutdown.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/shutdown.c b/src/firejail/shutdown.c index a7d0b2fbe..7e9628007 100644 --- a/src/firejail/shutdown.c +++ b/src/firejail/shutdown.c | |||
@@ -63,7 +63,9 @@ void shut(pid_t pid) { | |||
63 | sleep(1); | 63 | sleep(1); |
64 | monsec--; | 64 | monsec--; |
65 | 65 | ||
66 | EUID_ROOT(); | ||
66 | FILE *fp = fopen(monfile, "r"); | 67 | FILE *fp = fopen(monfile, "r"); |
68 | EUID_USER(); | ||
67 | if (!fp) { | 69 | if (!fp) { |
68 | killdone = 1; | 70 | killdone = 1; |
69 | break; | 71 | break; |