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 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ | 5 #ifndef SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ |
6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ | 6 #define SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "sandbox/linux/sandbox_export.h" | 10 #include "sandbox/sandbox_export.h" |
11 | 11 |
12 // The handlers are suitable for use in Trap() error codes. They are | 12 // The handlers are suitable for use in Trap() error codes. They are |
13 // guaranteed to be async-signal safe. | 13 // guaranteed to be async-signal safe. |
14 // See sandbox/linux/seccomp-bpf/trap.h to see how they work. | 14 // See sandbox/linux/seccomp-bpf/trap.h to see how they work. |
15 | 15 |
16 namespace sandbox { | 16 namespace sandbox { |
17 | 17 |
18 struct arch_seccomp_data; | 18 struct arch_seccomp_data; |
19 | 19 |
20 // This handler will crash the currently running process. The crashing address | 20 // This handler will crash the currently running process. The crashing address |
(...skipping 24 matching lines...) Expand all Loading... |
45 // Following four functions return substrings of error messages used | 45 // Following four functions return substrings of error messages used |
46 // in the above four functions. They are useful in death tests. | 46 // in the above four functions. They are useful in death tests. |
47 SANDBOX_EXPORT const char* GetErrorMessageContentForTests(); | 47 SANDBOX_EXPORT const char* GetErrorMessageContentForTests(); |
48 SANDBOX_EXPORT const char* GetCloneErrorMessageContentForTests(); | 48 SANDBOX_EXPORT const char* GetCloneErrorMessageContentForTests(); |
49 SANDBOX_EXPORT const char* GetPrctlErrorMessageContentForTests(); | 49 SANDBOX_EXPORT const char* GetPrctlErrorMessageContentForTests(); |
50 SANDBOX_EXPORT const char* GetIoctlErrorMessageContentForTests(); | 50 SANDBOX_EXPORT const char* GetIoctlErrorMessageContentForTests(); |
51 | 51 |
52 } // namespace sandbox. | 52 } // namespace sandbox. |
53 | 53 |
54 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ | 54 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ |
OLD | NEW |