| 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/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 16 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" | 16 #include "sandbox/linux/bpf_dsl/bpf_dsl.h" |
| 17 #include "sandbox/linux/bpf_dsl/policy.h" | 17 #include "sandbox/linux/bpf_dsl/policy.h" |
| 18 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" | 18 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
| 19 #include "sandbox/linux/services/linux_syscalls.h" | |
| 20 #include "sandbox/linux/services/syscall_wrappers.h" | 19 #include "sandbox/linux/services/syscall_wrappers.h" |
| 20 #include "sandbox/linux/system_headers/linux_syscalls.h" |
| 21 #include "sandbox/linux/tests/unit_tests.h" | 21 #include "sandbox/linux/tests/unit_tests.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 22 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 23 |
| 24 using sandbox::bpf_dsl::Allow; | 24 using sandbox::bpf_dsl::Allow; |
| 25 using sandbox::bpf_dsl::Error; | 25 using sandbox::bpf_dsl::Error; |
| 26 using sandbox::bpf_dsl::ResultExpr; | 26 using sandbox::bpf_dsl::ResultExpr; |
| 27 | 27 |
| 28 namespace sandbox { | 28 namespace sandbox { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 BPFDeathTestWithInlineTest, | 144 BPFDeathTestWithInlineTest, |
| 145 DEATH_MESSAGE(kHelloMessage), | 145 DEATH_MESSAGE(kHelloMessage), |
| 146 EnosysPtracePolicy) { | 146 EnosysPtracePolicy) { |
| 147 LOG(ERROR) << kHelloMessage; | 147 LOG(ERROR) << kHelloMessage; |
| 148 _exit(1); | 148 _exit(1); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace | 151 } // namespace |
| 152 | 152 |
| 153 } // namespace sandbox | 153 } // namespace sandbox |
| OLD | NEW |