aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-09-11 15:19:09 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-11 15:19:09 +0200
commit8044acef4c08e1013e77cadf84c47e095e7cc8a2 (patch)
treed4d3e16372b1a84a51357da8f7f19238174d53a7
parentadd switch to disable/enable private-cache (diff)
downloadfirejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.tar.gz
firejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.tar.zst
firejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.zip
exit if execl fails (arg_audit)
-rw-r--r--src/firejail/sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c
index 42dfbc3a5..5441522ab 100644
--- a/src/firejail/sandbox.c
+++ b/src/firejail/sandbox.c
@@ -417,6 +417,9 @@ void start_application(int no_sandbox, FILE *fp) {
417 seccomp_install_filters(); 417 seccomp_install_filters();
418#endif 418#endif
419 execl(arg_audit_prog, arg_audit_prog, NULL); 419 execl(arg_audit_prog, arg_audit_prog, NULL);
420
421 perror("execl");
422 exit(1);
420 } 423 }
421 //**************************************** 424 //****************************************
422 // start the program without using a shell 425 // start the program without using a shell