Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: content/browser/zygote_main_linux.cc

Issue 10082040: Unify the sandboxed vs. unsandboxed code paths more, for two reasons: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/zygote_main_linux.cc
===================================================================
--- content/browser/zygote_main_linux.cc (revision 132258)
+++ content/browser/zygote_main_linux.cc (working copy)
@@ -854,6 +854,10 @@
#if !defined(CHROMIUM_SELINUX)
static bool EnterSandbox() {
+ PreSandboxInit();
+ SkiaFontConfigSetImplementation(
+ new FontConfigIPC(kMagicSandboxIPCDescriptor));
+
Jorge Lucangeli Obes 2012/04/16 19:59:28 So this will do the pre-sandbox init even if the S
// The SUID sandbox sets this environment variable to a file descriptor
// over which we can signal that we have completed our startup and can be
// chrooted.
@@ -870,8 +874,6 @@
return false;
const int fd = fd_long;
- PreSandboxInit();
-
static const char kMsgChrootMe = 'C';
static const char kMsgChrootSuccessful = 'O';
@@ -894,9 +896,6 @@
return false;
}
- SkiaFontConfigSetImplementation(
- new FontConfigIPC(kMagicSandboxIPCDescriptor));
-
#if !defined(OS_OPENBSD)
// Previously, we required that the binary be non-readable. This causes the
// kernel to mark the process as non-dumpable at startup. The thinking was
@@ -924,14 +923,6 @@
}
}
#endif
-#if defined(SECCOMP_SANDBOX)
- } else if (SeccompSandboxEnabled()) {
- PreSandboxInit();
- SkiaFontConfigSetImplementation(
- new FontConfigIPC(kMagicSandboxIPCDescriptor));
-#endif
- } else {
- SkiaFontConfigUseDirectImplementation();
}
return true;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698