diff options
-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; |