diff options
Diffstat (limited to 'base/process_util_linux.cc')
-rw-r--r-- | base/process_util_linux.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/process_util_linux.cc b/base/process_util_linux.cc index 7560257..a5337b4 100644 --- a/base/process_util_linux.cc +++ b/base/process_util_linux.cc @@ -102,6 +102,11 @@ bool LaunchApp(const std::vector<std::string>& argv, if (!ShuffleFileDescriptors(fd_shuffle)) exit(127); + // If we are using the SUID sandbox, it sets a magic environment variable + // ("SBX_D"), so we remove that variable from the environment here on the + // off chance that it's already set. + unsetenv("SBX_D"); + CloseSuperfluousFds(fd_shuffle); scoped_array<char*> argv_cstr(new char*[argv.size() + 1]); |