Skip to content

Commit

Permalink
Give fbuilder full original environment
Browse files Browse the repository at this point in the history
Closes: #4460
  • Loading branch information
topimiettinen committed Aug 16, 2021
1 parent 38accb3 commit 3381c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/firejail/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,8 @@ static void run_builder(int argc, char **argv) {
assert(getenv("LD_PRELOAD") == NULL);
umask(orig_umask);

// restore some environment variables
env_apply_whitelist_sbox();
// restore original environment variables
env_apply_all();

argv[0] = LIBDIR "/firejail/fbuilder";
execvp(argv[0], argv);
Expand Down

0 comments on commit 3381c61

Please sign in to comment.