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

Unified Diff: content/public/common/sandbox_linux.h

Issue 10388013: Move the Linux zygote stuff into its own per-process directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/public/browser/zygote_host_linux.h ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/sandbox_linux.h
diff --git a/content/public/common/sandbox_linux.h b/content/public/common/sandbox_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..e92632f50f49ebc7989eccccb5149b0fbf278728
--- /dev/null
+++ b/content/public/common/sandbox_linux.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_SANDBOX_LINUX_H_
+#define CONTENT_PUBLIC_COMMON_SANDBOX_LINUX_H_
+
+namespace content {
+
+// These form a bitmask which describes the conditions of the Linux sandbox.
+enum {
+ // SUID sandbox active.
+ kSandboxLinuxSUID = 1 << 0,
+
+ // SUID sandbox is using the PID namespace.
+ kSandboxLinuxPIDNS = 1 << 1,
+
+ //SUID sandbox is using the network namespace.
+ kSandboxLinuxNetNS = 1 << 2,
+
+ // seccomp sandbox active.
+ kSandboxLinuxSeccomp = 1 << 3
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SANDBOX_LINUX_H_
« no previous file with comments | « content/public/browser/zygote_host_linux.h ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698