OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // Note: any code in this file MUST be async-signal safe. | 5 // Note: any code in this file MUST be async-signal safe. |
6 | 6 |
7 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" | 7 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" |
8 | 8 |
9 #include <sys/syscall.h> | 9 #include <sys/syscall.h> |
10 #include <unistd.h> | 10 #include <unistd.h> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/posix/eintr_wrapper.h" | 14 #include "base/posix/eintr_wrapper.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/seccomp-bpf/sandbox_bpf.h" | 17 #include "sandbox/linux/seccomp-bpf/sandbox_bpf.h" |
17 #include "sandbox/linux/seccomp-bpf/syscall.h" | 18 #include "sandbox/linux/seccomp-bpf/syscall.h" |
18 #include "sandbox/linux/services/linux_syscalls.h" | 19 #include "sandbox/linux/services/linux_syscalls.h" |
19 | 20 |
20 #if defined(__mips__) | 21 #if defined(__mips__) |
21 // __NR_Linux, is defined in <asm/unistd.h>. | 22 // __NR_Linux, is defined in <asm/unistd.h>. |
22 #include <asm/unistd.h> | 23 #include <asm/unistd.h> |
23 #endif | 24 #endif |
24 | 25 |
25 #define SECCOMP_MESSAGE_COMMON_CONTENT "seccomp-bpf failure" | 26 #define SECCOMP_MESSAGE_COMMON_CONTENT "seccomp-bpf failure" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 291 |
291 const char* GetKillErrorMessageContentForTests() { | 292 const char* GetKillErrorMessageContentForTests() { |
292 return SECCOMP_MESSAGE_KILL_CONTENT; | 293 return SECCOMP_MESSAGE_KILL_CONTENT; |
293 } | 294 } |
294 | 295 |
295 const char* GetFutexErrorMessageContentForTests() { | 296 const char* GetFutexErrorMessageContentForTests() { |
296 return SECCOMP_MESSAGE_FUTEX_CONTENT; | 297 return SECCOMP_MESSAGE_FUTEX_CONTENT; |
297 } | 298 } |
298 | 299 |
299 } // namespace sandbox. | 300 } // namespace sandbox. |
OLD | NEW |