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