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

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

Issue 915823002: Namespace sandbox: add important security checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
Index: content/common/sandbox_linux/sandbox_debug_handling_linux.h
diff --git a/content/common/sandbox_linux/sandbox_debug_handling_linux.h b/content/common/sandbox_linux/sandbox_debug_handling_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..248b54b43e7daa8d5df29088a85912aaf8637b36
--- /dev/null
+++ b/content/common/sandbox_linux/sandbox_debug_handling_linux.h
@@ -0,0 +1,25 @@
+// Copyright 2015 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_COMMON_SANDBOX_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
+#define CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_
+
+#include "base/macros.h"
+
+namespace content {
+
+class SandboxDebugHandling {
+ public:
+ // Depending on the command line, set the current process as
+ // non dumpable. Also set any signal handlers for sandbox
+ // debugging.
+ static bool SetDumpableStatusAndHandlers();
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SandboxDebugHandling);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_DEBUG_HANDLING_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698