diff options
author | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 19:56:35 +0000 |
---|---|---|
committer | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-11 19:56:35 +0000 |
commit | e60c023a07150052e4aefe6fd95ce5d09fc8767a (patch) | |
tree | 94577597f228dd8dce7e5aed8d0f98c3fe2487b8 /content/browser/zygote_main_linux.cc | |
parent | 10d7c0e4a5e5e15c0574b9ac4a94a93605c733bd (diff) | |
download | chromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.zip chromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.tar.gz chromium_src-e60c023a07150052e4aefe6fd95ce5d09fc8767a.tar.bz2 |
share all the needed linux code with OpenBSD in chrome and content
disabled code for OpenBSD:
- AdjustRendererOOMScore()
- SECCOMP_SANDBOX
BUG=
TEST=compile
Review URL: http://codereview.chromium.org/8341052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/zygote_main_linux.cc')
-rw-r--r-- | content/browser/zygote_main_linux.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/browser/zygote_main_linux.cc b/content/browser/zygote_main_linux.cc index c56d8ea..e2e174f 100644 --- a/content/browser/zygote_main_linux.cc +++ b/content/browser/zygote_main_linux.cc @@ -758,6 +758,7 @@ static bool EnterSandbox() { 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 // that, although we were putting the renderers into a PID namespace (with @@ -783,6 +784,7 @@ static bool EnterSandbox() { return false; } } +#endif #if defined(SECCOMP_SANDBOX) } else if (SeccompSandboxEnabled()) { PreSandboxInit(); |