OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/win/src/nt_internals.h" | 5 #include "sandbox/win/src/nt_internals.h" |
6 #include "sandbox/win/src/sandbox_types.h" | 6 #include "sandbox/win/src/sandbox_types.h" |
7 | 7 |
8 #ifndef SANDBOX_SRC_INTERCEPTORS_64_H_ | 8 #ifndef SANDBOX_SRC_INTERCEPTORS_64_H_ |
9 #define SANDBOX_SRC_INTERCEPTORS_64_H_ | 9 #define SANDBOX_SRC_INTERCEPTORS_64_H_ |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 LPPROCESS_INFORMATION process_information); | 115 LPPROCESS_INFORMATION process_information); |
116 | 116 |
117 // Interception of CreateProcessA in kernel32.dll. | 117 // Interception of CreateProcessA in kernel32.dll. |
118 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA64( | 118 SANDBOX_INTERCEPT BOOL WINAPI TargetCreateProcessA64( |
119 LPCSTR application_name, LPSTR command_line, | 119 LPCSTR application_name, LPSTR command_line, |
120 LPSECURITY_ATTRIBUTES process_attributes, | 120 LPSECURITY_ATTRIBUTES process_attributes, |
121 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags, | 121 LPSECURITY_ATTRIBUTES thread_attributes, BOOL inherit_handles, DWORD flags, |
122 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info, | 122 LPVOID environment, LPCSTR current_directory, LPSTARTUPINFOA startup_info, |
123 LPPROCESS_INFORMATION process_information); | 123 LPPROCESS_INFORMATION process_information); |
124 | 124 |
| 125 // Interception of CreateThread in kernel32.dll. |
| 126 SANDBOX_INTERCEPT HANDLE WINAPI |
| 127 TargetCreateThread64(LPSECURITY_ATTRIBUTES thread_attributes, |
| 128 SIZE_T stack_size, |
| 129 LPTHREAD_START_ROUTINE start_address, |
| 130 PVOID parameter, |
| 131 DWORD creation_flags, |
| 132 LPDWORD thread_id); |
| 133 |
125 // ----------------------------------------------------------------------- | 134 // ----------------------------------------------------------------------- |
126 // Interceptors handled by the registry dispatcher. | 135 // Interceptors handled by the registry dispatcher. |
127 | 136 |
128 // Interception of NtCreateKey on the child process. | 137 // Interception of NtCreateKey on the child process. |
129 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateKey64( | 138 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateKey64( |
130 PHANDLE key, ACCESS_MASK desired_access, | 139 PHANDLE key, ACCESS_MASK desired_access, |
131 POBJECT_ATTRIBUTES object_attributes, ULONG title_index, | 140 POBJECT_ATTRIBUTES object_attributes, ULONG title_index, |
132 PUNICODE_STRING class_name, ULONG create_options, PULONG disposition); | 141 PUNICODE_STRING class_name, ULONG create_options, PULONG disposition); |
133 | 142 |
134 // Interception of NtOpenKey on the child process. | 143 // Interception of NtOpenKey on the child process. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object); | 175 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object); |
167 | 176 |
168 // Interceptor for the RegisterClassW function. | 177 // Interceptor for the RegisterClassW function. |
169 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class); | 178 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class); |
170 | 179 |
171 } // extern "C" | 180 } // extern "C" |
172 | 181 |
173 } // namespace sandbox | 182 } // namespace sandbox |
174 | 183 |
175 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ | 184 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ |
OLD | NEW |