From 57b457cf4556980f1b0e2cc34bfae53a62143cb1 Mon Sep 17 00:00:00 2001 From: Remco Date: Fri, 28 Apr 2017 10:35:14 +0200 Subject: Prevent running shells recursively --- src/firejail/no_sandbox.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/firejail/no_sandbox.c b/src/firejail/no_sandbox.c index ecbc5d1d0..9221aaa99 100644 --- a/src/firejail/no_sandbox.c +++ b/src/firejail/no_sandbox.c @@ -229,5 +229,9 @@ void run_no_sandbox(int argc, char **argv) { "%s will run without any additional sandboxing features\n", command); arg_quiet = 1; + + // we don't want to run a shell, otherwise it will be recursively + arg_shell_none = 1; + start_application(); } -- cgit v1.2.3-54-g00ecf