Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: sandbox/win/src/interceptors_64.h

Issue 1225183003: CreateThread interception, to use CreateRemoteThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix up casts Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/win/src/interceptors.h ('k') | sandbox/win/src/interceptors_64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sandbox/win/src/interceptors.h ('k') | sandbox/win/src/interceptors_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698