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

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 missing variable from cleanup Created 5 years, 3 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
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 TargetCreateThread64(
127 LPSECURITY_ATTRIBUTES thread_attributes, SIZE_T stack_size,
128 LPTHREAD_START_ROUTINE start_address, PVOID parameter,
129 DWORD creation_flags, LPDWORD thread_id);
130
131
125 // ----------------------------------------------------------------------- 132 // -----------------------------------------------------------------------
126 // Interceptors handled by the registry dispatcher. 133 // Interceptors handled by the registry dispatcher.
127 134
128 // Interception of NtCreateKey on the child process. 135 // Interception of NtCreateKey on the child process.
129 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateKey64( 136 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateKey64(
130 PHANDLE key, ACCESS_MASK desired_access, 137 PHANDLE key, ACCESS_MASK desired_access,
131 POBJECT_ATTRIBUTES object_attributes, ULONG title_index, 138 POBJECT_ATTRIBUTES object_attributes, ULONG title_index,
132 PUNICODE_STRING class_name, ULONG create_options, PULONG disposition); 139 PUNICODE_STRING class_name, ULONG create_options, PULONG disposition);
133 140
134 // Interception of NtOpenKey on the child process. 141 // 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); 173 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object);
167 174
168 // Interceptor for the RegisterClassW function. 175 // Interceptor for the RegisterClassW function.
169 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class); 176 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class);
170 177
171 } // extern "C" 178 } // extern "C"
172 179
173 } // namespace sandbox 180 } // namespace sandbox
174 181
175 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ 182 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698