diff options
author | 2020-07-04 00:14:20 +0300 | |
---|---|---|
committer | 2020-07-04 00:14:20 +0300 | |
commit | a191c20101273ac4ff9ef7878136ed5eee3994a1 (patch) | |
tree | 9a2289cbaf6459c27763bd9c8009f81726070a84 /src | |
parent | allow running kernel config check in zgrep.profile (diff) | |
download | firejail-a191c20101273ac4ff9ef7878136ed5eee3994a1.tar.gz firejail-a191c20101273ac4ff9ef7878136ed5eee3994a1.tar.zst firejail-a191c20101273ac4ff9ef7878136ed5eee3994a1.zip |
Fix seccomp error action
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sbox.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/sbox.c b/src/firejail/sbox.c index 91c658f96..99f11a246 100644 --- a/src/firejail/sbox.c +++ b/src/firejail/sbox.c | |||
@@ -45,6 +45,9 @@ static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) { | |||
45 | new_environment[env_index++] = "FIREJAIL_QUIET=yes"; | 45 | new_environment[env_index++] = "FIREJAIL_QUIET=yes"; |
46 | if (arg_debug) // --debug is passed as an environment variable | 46 | if (arg_debug) // --debug is passed as an environment variable |
47 | new_environment[env_index++] = "FIREJAIL_DEBUG=yes"; | 47 | new_environment[env_index++] = "FIREJAIL_DEBUG=yes"; |
48 | if (cfg.seccomp_error_action) | ||
49 | if (asprintf(&new_environment[env_index++], "FIREJAIL_SECCOMP_ERROR_ACTION=%s", cfg.seccomp_error_action) == -1) | ||
50 | errExit("asprintf"); | ||
48 | 51 | ||
49 | if (filtermask & SBOX_STDIN_FROM_FILE) { | 52 | if (filtermask & SBOX_STDIN_FROM_FILE) { |
50 | int fd; | 53 | int fd; |