diff options
author | 2016-11-03 11:16:21 -0400 | |
---|---|---|
committer | 2016-11-03 11:16:21 -0400 | |
commit | 0fcd5701a1040de8c533e5a36f7e9ff726eabcbb (patch) | |
tree | cec9d2e8340061c14d2e5af0591ef43e707e3783 /src | |
parent | moved to 0.9.38.5 (diff) | |
download | firejail-0fcd5701a1040de8c533e5a36f7e9ff726eabcbb.tar.gz firejail-0fcd5701a1040de8c533e5a36f7e9ff726eabcbb.tar.zst firejail-0fcd5701a1040de8c533e5a36f7e9ff726eabcbb.zip |
fix environment variables
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sandbox.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index fc93e1eef..5d0369f03 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -175,6 +175,14 @@ static void monitor_application(pid_t app_pid) { | |||
175 | 175 | ||
176 | 176 | ||
177 | static void start_application(void) { | 177 | static void start_application(void) { |
178 | // set environment | ||
179 | env_defaults(); | ||
180 | env_apply(); | ||
181 | if (arg_debug) { | ||
182 | printf("starting application\n"); | ||
183 | printf("LD_PRELOAD=%s\n", getenv("LD_PRELOAD")); | ||
184 | } | ||
185 | |||
178 | //**************************************** | 186 | //**************************************** |
179 | // start the program without using a shell | 187 | // start the program without using a shell |
180 | //**************************************** | 188 | //**************************************** |
@@ -556,12 +564,6 @@ int sandbox(void* sandbox_arg) { | |||
556 | } | 564 | } |
557 | } | 565 | } |
558 | 566 | ||
559 | // set environment | ||
560 | env_defaults(); | ||
561 | |||
562 | // set user-supplied environment variables | ||
563 | env_apply(); | ||
564 | |||
565 | //**************************** | 567 | //**************************** |
566 | // set security filters | 568 | // set security filters |
567 | //**************************** | 569 | //**************************** |