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

Side by Side Diff: content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h

Issue 299683004: Rewrite all BPF policies to use DSL API Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Overhaul of DSL and implementation Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_ 5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_
6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_ 6 #define CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_
7 7
8 #include "content/common/sandbox_linux/bpf_gpu_policy_linux.h" 8 #include "content/common/sandbox_linux/bpf_gpu_policy_linux.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This policy is for Chrome OS ARM. 12 // This policy is for Chrome OS ARM.
13 class CrosArmGpuProcessPolicy : public GpuProcessPolicy { 13 class CrosArmGpuProcessPolicy : public GpuProcessPolicy {
14 public: 14 public:
15 explicit CrosArmGpuProcessPolicy(bool allow_shmat); 15 explicit CrosArmGpuProcessPolicy(bool allow_shmat);
16 virtual ~CrosArmGpuProcessPolicy(); 16 virtual ~CrosArmGpuProcessPolicy();
17 17
18 virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler, 18 virtual sandbox::bpf_dsl::ResultExpr EvaluateSyscall(
19 int system_call_number) const OVERRIDE; 19 int sysno) const OVERRIDE;
20 virtual bool PreSandboxHook() OVERRIDE; 20 virtual bool PreSandboxHook() OVERRIDE;
21 21
22 private: 22 private:
23 const bool allow_shmat_; // Allow shmat(2). 23 const bool allow_shmat_; // Allow shmat(2).
24 DISALLOW_COPY_AND_ASSIGN(CrosArmGpuProcessPolicy); 24 DISALLOW_COPY_AND_ASSIGN(CrosArmGpuProcessPolicy);
25 }; 25 };
26 26
27 } // namespace content 27 } // namespace content
28 28
29 #endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_ 29 #endif // CONTENT_COMMON_SANDBOX_LINUX_BPF_CROS_ARM_GPU_POLICY_LINUX_H_
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox.cc ('k') | content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698