OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /* | 7 /* |
8 * NaCl service run-time, non-platform specific system call helper routines. | 8 * NaCl service run-time, non-platform specific system call helper routines. |
9 */ | 9 */ |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 int32_t NaClSysExit(struct NaClAppThread *natp, | 38 int32_t NaClSysExit(struct NaClAppThread *natp, |
39 int status); | 39 int status); |
40 | 40 |
41 int32_t NaClSysThreadExit(struct NaClAppThread *natp, | 41 int32_t NaClSysThreadExit(struct NaClAppThread *natp, |
42 uint32_t stack_flag_addr); | 42 uint32_t stack_flag_addr); |
43 | 43 |
44 extern int NaClAclBypassChecks; | 44 extern int NaClAclBypassChecks; |
45 | 45 |
46 void NaClInsecurelyBypassAllAclChecks(void); | 46 void NaClInsecurelyBypassAllAclChecks(void); |
47 | 47 |
| 48 /* |
| 49 * NaClRootDir will not be NULL when a root dir has been provided and NULL |
| 50 * otherwise. NaClRootDir also never ends with a trailing slash. |
| 51 * The upshot of the last two properties is that when NaClRootDir is set to |
| 52 * "/" the value will be "" with length 0. |
| 53 */ |
| 54 extern char *NaClRootDir; |
| 55 extern size_t NaClRootDirLen; |
| 56 |
| 57 /* bool */ |
| 58 int NaClMountRootDir(char *root); |
| 59 |
| 60 /* bool */ |
| 61 int NaClFileAccessEnabled(void); |
| 62 |
| 63 /* bool */ |
| 64 int NaClSanitizePathLexically(char *path); |
| 65 |
48 /* bool */ | 66 /* bool */ |
49 int NaClSysCommonAddrRangeContainsExecutablePages(struct NaClApp *nap, | 67 int NaClSysCommonAddrRangeContainsExecutablePages(struct NaClApp *nap, |
50 uintptr_t usraddr, | 68 uintptr_t usraddr, |
51 size_t length); | 69 size_t length); |
52 | 70 |
53 /* bool */ | 71 /* bool */ |
54 int NaClSysCommonAddrRangeInAllowedDynamicCodeSpace(struct NaClApp *nap, | 72 int NaClSysCommonAddrRangeInAllowedDynamicCodeSpace(struct NaClApp *nap, |
55 uintptr_t usraddr, | 73 uintptr_t usraddr, |
56 size_t length); | 74 size_t length); |
57 | 75 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 int32_t name, | 158 int32_t name, |
141 uint32_t result_addr); | 159 uint32_t result_addr); |
142 | 160 |
143 int32_t NaClSysTestInfoLeak(struct NaClAppThread *natp); | 161 int32_t NaClSysTestInfoLeak(struct NaClAppThread *natp); |
144 | 162 |
145 int32_t NaClSysTestCrash(struct NaClAppThread *natp, int crash_type); | 163 int32_t NaClSysTestCrash(struct NaClAppThread *natp, int crash_type); |
146 | 164 |
147 EXTERN_C_END | 165 EXTERN_C_END |
148 | 166 |
149 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYSCALL_COMMON_H__ */ | 167 #endif /* NATIVE_CLIENT_SERVICE_RUNTIME_NACL_SYSCALL_COMMON_H__ */ |
OLD | NEW |