OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_ |
| 7 |
| 8 #include "sandbox/linux/seccomp-bpf-helpers/baseline_policy.h" |
| 9 #include "sandbox/linux/seccomp-bpf/errorcode.h" |
| 10 |
| 11 namespace sandbox { |
| 12 |
| 13 class SandboxBPF; |
| 14 |
| 15 // This class builds on top of the generic Linux baseline policy to reduce |
| 16 // Linux kernel attack surface. It augments the list of allowed syscalls to |
| 17 // allow ones required by the Android runtime. |
| 18 class BaselinePolicyAndroid : public BaselinePolicy { |
| 19 public: |
| 20 BaselinePolicyAndroid(); |
| 21 virtual ~BaselinePolicyAndroid(); |
| 22 |
| 23 // SandboxBPFPolicy: |
| 24 virtual ErrorCode EvaluateSyscall(SandboxBPF* sandbox_compiler, |
| 25 int system_call_number) const OVERRIDE; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(BaselinePolicyAndroid); |
| 29 }; |
| 30 |
| 31 } // namespace sandbox |
| 32 |
| 33 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_BASELINE_POLICY_ANDROID_H_ |
OLD | NEW |