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/linux/sandbox_export.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 SIGSYSCloneFailure(const struct arch_seccomp_data& args, void* aux); | 32 SIGSYSCloneFailure(const struct arch_seccomp_data& args, void* aux); |
33 // The crashing address will be (option & 0xFFF), where option is the prctl(2) | 33 // The crashing address will be (option & 0xFFF), where option is the prctl(2) |
34 // argument. | 34 // argument. |
35 SANDBOX_EXPORT intptr_t | 35 SANDBOX_EXPORT intptr_t |
36 SIGSYSPrctlFailure(const struct arch_seccomp_data& args, void* aux); | 36 SIGSYSPrctlFailure(const struct arch_seccomp_data& args, void* aux); |
37 // The crashing address will be request & 0xFFFF, where request is the ioctl(2) | 37 // The crashing address will be request & 0xFFFF, where request is the ioctl(2) |
38 // argument. | 38 // argument. |
39 SANDBOX_EXPORT intptr_t | 39 SANDBOX_EXPORT intptr_t |
40 SIGSYSIoctlFailure(const struct arch_seccomp_data& args, void* aux); | 40 SIGSYSIoctlFailure(const struct arch_seccomp_data& args, void* aux); |
41 | 41 |
42 // Following four functions return substrings of error messages used | |
Mark Seaborn
2014/04/15 23:03:14
Nit: "The following..." (otherwise I start reading
hamaji
2014/04/16 02:10:48
Done.
| |
43 // in the above four functions. They are useful in death tests. | |
44 SANDBOX_EXPORT const char* GetErrorMessageContentForTests(); | |
45 SANDBOX_EXPORT const char* GetCloneErrorMessageContentForTests(); | |
46 SANDBOX_EXPORT const char* GetPrctlErrorMessageContentForTests(); | |
47 SANDBOX_EXPORT const char* GetIoctlErrorMessageContentForTests(); | |
48 | |
42 } // namespace sandbox. | 49 } // namespace sandbox. |
43 | 50 |
44 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ | 51 #endif // SANDBOX_LINUX_SECCOMP_BPF_HELPERS_SIGSYS_HANDLERS_H_ |
OLD | NEW |