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/policy_compiler.h" | 5 #include "sandbox/linux/bpf_dsl/policy_compiler.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
8 #include <sys/syscall.h> | 10 #include <sys/syscall.h> |
9 | 11 |
10 #include <limits> | 12 #include <limits> |
11 | 13 |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/macros.h" | 15 #include "base/macros.h" |
14 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" | 16 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" |
15 #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h" | 17 #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h" |
16 #include "sandbox/linux/bpf_dsl/codegen.h" | 18 #include "sandbox/linux/bpf_dsl/codegen.h" |
17 #include "sandbox/linux/bpf_dsl/policy.h" | 19 #include "sandbox/linux/bpf_dsl/policy.h" |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 for (size_t i = 0; i < arraysize(kSyscallsRequiredForUnsafeTraps); ++i) { | 457 for (size_t i = 0; i < arraysize(kSyscallsRequiredForUnsafeTraps); ++i) { |
456 if (sysno == kSyscallsRequiredForUnsafeTraps[i]) { | 458 if (sysno == kSyscallsRequiredForUnsafeTraps[i]) { |
457 return true; | 459 return true; |
458 } | 460 } |
459 } | 461 } |
460 return false; | 462 return false; |
461 } | 463 } |
462 | 464 |
463 } // namespace bpf_dsl | 465 } // namespace bpf_dsl |
464 } // namespace sandbox | 466 } // namespace sandbox |
OLD | NEW |