OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/seccomp-bpf/bpf_tests.h" | 5 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <sys/ptrace.h> | 8 #include <sys/ptrace.h> |
9 #include <sys/syscall.h> | 9 #include <sys/syscall.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "build/build_config.h" | 16 #include "build/build_config.h" |
16 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" | 17 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" |
17 #include "sandbox/linux/bpf_dsl/policy.h" | 18 #include "sandbox/linux/bpf_dsl/policy.h" |
18 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 19 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
19 #include "sandbox/linux/services/syscall_wrappers.h" | 20 #include "sandbox/linux/services/syscall_wrappers.h" |
20 #include "sandbox/linux/system_headers/linux_syscalls.h" | 21 #include "sandbox/linux/system_headers/linux_syscalls.h" |
21 #include "sandbox/linux/tests/unit_tests.h" | 22 #include "sandbox/linux/tests/unit_tests.h" |
22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
23 | 24 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 BPFDeathTestWithInlineTest, | 145 BPFDeathTestWithInlineTest, |
145 DEATH_MESSAGE(kHelloMessage), | 146 DEATH_MESSAGE(kHelloMessage), |
146 EnosysPtracePolicy) { | 147 EnosysPtracePolicy) { |
147 LOG(ERROR) << kHelloMessage; | 148 LOG(ERROR) << kHelloMessage; |
148 _exit(1); | 149 _exit(1); |
149 } | 150 } |
150 | 151 |
151 } // namespace | 152 } // namespace |
152 | 153 |
153 } // namespace sandbox | 154 } // namespace sandbox |
OLD | NEW |