diff options
Diffstat (limited to 'src/firejail/restrict_users.c')
-rw-r--r-- | src/firejail/restrict_users.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/restrict_users.c b/src/firejail/restrict_users.c index cb999a4a6..9e0c789aa 100644 --- a/src/firejail/restrict_users.c +++ b/src/firejail/restrict_users.c | |||
@@ -335,6 +335,9 @@ errout: | |||
335 | } | 335 | } |
336 | 336 | ||
337 | void restrict_users(void) { | 337 | void restrict_users(void) { |
338 | if (arg_allusers) | ||
339 | return; | ||
340 | |||
338 | // only in user mode | 341 | // only in user mode |
339 | if (getuid()) { | 342 | if (getuid()) { |
340 | if (strncmp(cfg.homedir, "/home/", 6) == 0) { | 343 | if (strncmp(cfg.homedir, "/home/", 6) == 0) { |