diff options
author | smitsohu <smitsohu@gmail.com> | 2018-09-11 15:19:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 15:19:09 +0200 |
commit | 8044acef4c08e1013e77cadf84c47e095e7cc8a2 (patch) | |
tree | d4d3e16372b1a84a51357da8f7f19238174d53a7 /src | |
parent | add switch to disable/enable private-cache (diff) | |
download | firejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.tar.gz firejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.tar.zst firejail-8044acef4c08e1013e77cadf84c47e095e7cc8a2.zip |
exit if execl fails (arg_audit)
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sandbox.c | 3 |
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 |