summaryrefslogtreecommitdiffstats
path: root/chrome/browser/zygote_main_linux.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 04:05:59 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 04:05:59 +0000
commitcbcf9cc32b5f6cd73e3b734b1c19248f6ac65fec (patch)
tree80983df9aeec6a422d77688cd1645ad16af94a17 /chrome/browser/zygote_main_linux.cc
parent7af0a8b1d6317e4c177d6232d9dd7ace363b230c (diff)
downloadchromium_src-cbcf9cc32b5f6cd73e3b734b1c19248f6ac65fec.zip
chromium_src-cbcf9cc32b5f6cd73e3b734b1c19248f6ac65fec.tar.gz
chromium_src-cbcf9cc32b5f6cd73e3b734b1c19248f6ac65fec.tar.bz2
Linux: Only close kZygoteIdDescriptor when using the SUID sandbox.
BUG=none TEST=none Review URL: http://codereview.chromium.org/608020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/zygote_main_linux.cc')
-rw-r--r--chrome/browser/zygote_main_linux.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/zygote_main_linux.cc b/chrome/browser/zygote_main_linux.cc
index 3b9c6ef..009ba00d 100644
--- a/chrome/browser/zygote_main_linux.cc
+++ b/chrome/browser/zygote_main_linux.cc
@@ -254,7 +254,8 @@ class Zygote {
#endif
close(kBrowserDescriptor); // our socket from the browser
- close(kZygoteIdDescriptor); // another socket from the browser
+ if (g_suid_sandbox_active)
+ close(kZygoteIdDescriptor); // another socket from the browser
Singleton<base::GlobalDescriptors>()->Reset(mapping);
// Reset the process-wide command line to our new command line.