| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 VERIFIER_H__ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_VERIFIER_H__ |
| 6 #define VERIFIER_H__ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_VERIFIER_H__ |
| 7 | 7 |
| 8 #include <linux/filter.h> | 8 #include <linux/filter.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 13 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
| 14 | 14 |
| 15 | 15 |
| 16 namespace playground2 { | 16 namespace playground2 { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 static void jmp(State *state, const struct sock_filter& insn, | 65 static void jmp(State *state, const struct sock_filter& insn, |
| 66 const char **err); | 66 const char **err); |
| 67 static uint32_t ret(State *state, const struct sock_filter& insn, | 67 static uint32_t ret(State *state, const struct sock_filter& insn, |
| 68 const char **err); | 68 const char **err); |
| 69 | 69 |
| 70 DISALLOW_IMPLICIT_CONSTRUCTORS(Verifier); | 70 DISALLOW_IMPLICIT_CONSTRUCTORS(Verifier); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace | 73 } // namespace |
| 74 | 74 |
| 75 #endif // VERIFIER_H__ | 75 #endif // SANDBOX_LINUX_SECCOMP_BPF_VERIFIER_H__ |
| OLD | NEW |