aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-04-28 11:26:25 -0400
committerLibravatar GitHub <noreply@github.com>2017-04-28 11:26:25 -0400
commit28d3f2b52ee97a685ab32833a7cc02e01f2d78ec (patch)
tree560b0cb12b81cd8576246373f712a94829b5bf85
parentMerge pull request #1253 from dutchcoders/overlay (diff)
parentPrevent running shells recursively (diff)
downloadfirejail-28d3f2b52ee97a685ab32833a7cc02e01f2d78ec.tar.gz
firejail-28d3f2b52ee97a685ab32833a7cc02e01f2d78ec.tar.zst
firejail-28d3f2b52ee97a685ab32833a7cc02e01f2d78ec.zip
Merge pull request #1254 from dutchcoders/fix-recursive-shell
Prevent running shells recursively
-rw-r--r--src/firejail/no_sandbox.c4
1 files changed, 4 insertions, 0 deletions
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) {
229 "%s will run without any additional sandboxing features\n", command); 229 "%s will run without any additional sandboxing features\n", command);
230 230
231 arg_quiet = 1; 231 arg_quiet = 1;
232
233 // we don't want to run a shell, otherwise it will be recursively
234 arg_shell_none = 1;
235
232 start_application(); 236 start_application();
233} 237}