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

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

Issue 333823002: Apply renderer sandbox to utility processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to jln feedback Created 6 years, 6 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/bpf_utility_policy_linux.h
diff --git a/content/common/sandbox_linux/bpf_utility_policy_linux.h b/content/common/sandbox_linux/bpf_utility_policy_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..9dbb284b9c0e65210b09cc478867c652a7233e61
--- /dev/null
+++ b/content/common/sandbox_linux/bpf_utility_policy_linux.h
@@ -0,0 +1,27 @@
+// Copyright 2014 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_BPF_UTILITY_POLICY_LINUX_H_
+#define CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_
+
+#include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
+
+namespace content {
+
+// This policy can be used by both utility processes.
+class UtilityProcessPolicy : public SandboxBPFBasePolicy {
+ public:
+ UtilityProcessPolicy();
+ virtual ~UtilityProcessPolicy();
+
+ virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler,
+ int system_call_number) const OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(UtilityProcessPolicy);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_UTILITY_POLICY_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698