| OLD | NEW |
| 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 SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ |
| 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "sandbox/sandbox_export.h" | 9 #include "sandbox/sandbox_export.h" |
| 10 | 10 |
| 11 namespace sandbox { | 11 namespace sandbox { |
| 12 | 12 |
| 13 class ErrorCode; | 13 class ErrorCode; |
| 14 class SandboxBPF; | 14 class SandboxBPF; |
| 15 | 15 |
| 16 // This is the interface to implement to define a BPF sandbox policy. | 16 // This is the interface to implement to define a BPF sandbox policy. |
| 17 class SANDBOX_EXPORT SandboxBPFPolicy { | 17 class SANDBOX_EXPORT SandboxBPFPolicy { |
| 18 public: | 18 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 // system calls. The default implementation is to return ENOSYS. | 32 // system calls. The default implementation is to return ENOSYS. |
| 33 virtual ErrorCode InvalidSyscall(SandboxBPF* sandbox_compiler) const; | 33 virtual ErrorCode InvalidSyscall(SandboxBPF* sandbox_compiler) const; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(SandboxBPFPolicy); | 36 DISALLOW_COPY_AND_ASSIGN(SandboxBPFPolicy); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace sandbox | 39 } // namespace sandbox |
| 40 | 40 |
| 41 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ | 41 #endif // SANDBOX_LINUX_SECCOMP_BPF_SANDBOX_BPF_POLICY_H_ |
| OLD | NEW |