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

Unified Diff: content/common/sandbox_linux.h

Issue 13814027: Linux: make current InitializeSandbox() private. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove sandbox_init_linux.cc Created 7 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 | « content/common/sandbox_init_linux.cc ('k') | content/common/sandbox_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_linux.h
diff --git a/content/common/sandbox_linux.h b/content/common/sandbox_linux.h
index 3df65ea27a4d5d64bbbaac11c18ad1a074f19fd9..9286e315b7bc92d36a32c5736ce634e6913f2602 100644
--- a/content/common/sandbox_linux.h
+++ b/content/common/sandbox_linux.h
@@ -52,9 +52,15 @@ class LinuxSandbox {
void PreinitializeSandboxBegin();
void PreinitializeSandboxFinish(const std::string& process_type);
- // Returns the Status of the sandbox. Can only be queried if we went through
- // PreinitializeSandbox() or PreinitializeSandboxBegin(). This is a bitmask
- // and uses the constants defined in "enum LinuxSandboxStatus".
+ // Initialize the sandbox with the given pre-built configuration. Currently
+ // seccomp-legacy, seccomp-bpf, address space limitations (the setuid sandbox
+ // works differently and is set-up in the Zygote). This will instantiate the
+ // LinuxSandbox singleton if it doesn't already exist.
+ static bool InitializeSandbox();
+
+ // Returns the Status of the renderers' sandbox. Can only be queried if we
+ // went through PreinitializeSandbox() or PreinitializeSandboxBegin(). This
+ // is a bitmask and uses the constants defined in "enum LinuxSandboxStatus".
// Since we need to provide the status before the sandboxes are actually
// started, this returns what will actually happen once the various Start*
// functions are called from inside a renderer.
« no previous file with comments | « content/common/sandbox_init_linux.cc ('k') | content/common/sandbox_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698