diff options
author | 2021-02-16 03:28:33 +0100 | |
---|---|---|
committer | 2021-02-16 03:28:33 +0100 | |
commit | 1905d8c893390d3f2cf5ce5523e50afbbf03ce51 (patch) | |
tree | 7401eeec821441512cbeeb52a45dc53e50509b43 /src | |
parent | some cleanup (diff) | |
download | firejail-1905d8c893390d3f2cf5ce5523e50afbbf03ce51.tar.gz firejail-1905d8c893390d3f2cf5ce5523e50afbbf03ce51.tar.zst firejail-1905d8c893390d3f2cf5ce5523e50afbbf03ce51.zip |
firejail in firejail: don't clear environment variables
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sandbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index 318c45335..9a4be5cc0 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -462,10 +462,10 @@ static int ok_to_run(const char *program) { | |||
462 | 462 | ||
463 | void start_application(int no_sandbox, int fd, char *set_sandbox_status) { | 463 | void start_application(int no_sandbox, int fd, char *set_sandbox_status) { |
464 | // set environment | 464 | // set environment |
465 | if (no_sandbox == 0) { | 465 | if (no_sandbox == 0) |
466 | env_defaults(); | 466 | env_defaults(); |
467 | env_apply_all(); | 467 | env_apply_all(); |
468 | } | 468 | |
469 | // restore original umask | 469 | // restore original umask |
470 | umask(orig_umask); | 470 | umask(orig_umask); |
471 | 471 | ||