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 #include "sandbox/linux/bpf_dsl/verifier.h" | 5 #include "sandbox/linux/bpf_dsl/verifier.h" |
6 | 6 |
7 #include <stdint.h> | |
8 #include <string.h> | 7 #include <string.h> |
9 | 8 |
10 #include "base/macros.h" | |
11 #include "sandbox/linux/bpf_dsl/seccomp_macros.h" | 9 #include "sandbox/linux/bpf_dsl/seccomp_macros.h" |
12 #include "sandbox/linux/bpf_dsl/trap_registry.h" | 10 #include "sandbox/linux/bpf_dsl/trap_registry.h" |
13 #include "sandbox/linux/system_headers/linux_filter.h" | 11 #include "sandbox/linux/system_headers/linux_filter.h" |
14 #include "sandbox/linux/system_headers/linux_seccomp.h" | 12 #include "sandbox/linux/system_headers/linux_seccomp.h" |
15 | 13 |
16 namespace sandbox { | 14 namespace sandbox { |
17 namespace bpf_dsl { | 15 namespace bpf_dsl { |
18 | 16 |
19 namespace { | 17 namespace { |
20 | 18 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 default: | 214 default: |
217 *err = "Unexpected instruction in BPF program"; | 215 *err = "Unexpected instruction in BPF program"; |
218 break; | 216 break; |
219 } | 217 } |
220 } | 218 } |
221 return 0; | 219 return 0; |
222 } | 220 } |
223 | 221 |
224 } // namespace bpf_dsl | 222 } // namespace bpf_dsl |
225 } // namespace sandbox | 223 } // namespace sandbox |
OLD | NEW |