diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index a540d468b..2f4a78d4b 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -77,6 +77,7 @@ int arg_rlimit_nproc = 0; // rlimit nproc | |||
77 | int arg_rlimit_fsize = 0; // rlimit fsize | 77 | int arg_rlimit_fsize = 0; // rlimit fsize |
78 | int arg_rlimit_sigpending = 0; // rlimit fsize | 78 | int arg_rlimit_sigpending = 0; // rlimit fsize |
79 | int arg_nogroups = 0; // disable supplementary groups | 79 | int arg_nogroups = 0; // disable supplementary groups |
80 | int arg_nonewprivs = 0; // set the NO_NEW_PRIVS prctl | ||
80 | int arg_noroot = 0; // create a new user namespace and disable root user | 81 | int arg_noroot = 0; // create a new user namespace and disable root user |
81 | int arg_netfilter; // enable netfilter | 82 | int arg_netfilter; // enable netfilter |
82 | int arg_netfilter6; // enable netfilter6 | 83 | int arg_netfilter6; // enable netfilter6 |
@@ -1367,6 +1368,9 @@ int main(int argc, char **argv) { | |||
1367 | } | 1368 | } |
1368 | } | 1369 | } |
1369 | #endif | 1370 | #endif |
1371 | else if (strcmp(argv[i], "--nonewprivs") == 0) { | ||
1372 | arg_nonewprivs = 1; | ||
1373 | } | ||
1370 | else if (strncmp(argv[i], "--env=", 6) == 0) | 1374 | else if (strncmp(argv[i], "--env=", 6) == 0) |
1371 | env_store(argv[i] + 6); | 1375 | env_store(argv[i] + 6); |
1372 | else if (strncmp(argv[i], "--nosound", 9) == 0) { | 1376 | else if (strncmp(argv[i], "--nosound", 9) == 0) { |