diff options
Diffstat (limited to 'src/firejail/join.c')
-rw-r--r-- | src/firejail/join.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c index 5ef54002b..742cda80b 100644 --- a/src/firejail/join.c +++ b/src/firejail/join.c | |||
@@ -501,10 +501,7 @@ void join(pid_t pid, int argc, char **argv, int index) { | |||
501 | } | 501 | } |
502 | 502 | ||
503 | // set nonewprivs | 503 | // set nonewprivs |
504 | #ifndef HAVE_FORCE_NONEWPRIVS | 504 | if (arg_nonewprivs == 1) { |
505 | if (arg_nonewprivs == 1) // not available for uid 0 | ||
506 | #endif | ||
507 | { | ||
508 | if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) != 0) | 505 | if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) != 0) |
509 | errExit("prctl"); | 506 | errExit("prctl"); |
510 | if (arg_debug) | 507 | if (arg_debug) |