OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ |
6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/logging.h" | 8 #include "base/logging.h" |
10 #include "base/macros.h" | 9 #include "base/macros.h" |
11 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 10 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
12 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" | 11 #include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h" |
13 | 12 |
14 namespace sandbox { | 13 namespace sandbox { |
15 | 14 |
16 // This class allows compatibility with the old, deprecated | 15 // This class allows compatibility with the old, deprecated |
17 // policies that were designed for SetSandboxPolicyDeprecated(). | 16 // policies that were designed for SetSandboxPolicyDeprecated(). |
18 template <class AuxType> | 17 template <class AuxType> |
(...skipping 15 matching lines...) Expand all Loading... |
34 | 33 |
35 private: | 34 private: |
36 SyscallEvaluator syscall_evaluator_; | 35 SyscallEvaluator syscall_evaluator_; |
37 AuxType* aux_; | 36 AuxType* aux_; |
38 DISALLOW_COPY_AND_ASSIGN(CompatibilityPolicy); | 37 DISALLOW_COPY_AND_ASSIGN(CompatibilityPolicy); |
39 }; | 38 }; |
40 | 39 |
41 } // namespace sandbox | 40 } // namespace sandbox |
42 | 41 |
43 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ | 42 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_COMPATIBILITY_POLICY_H_ |
OLD | NEW |