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

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

Issue 41193002: Attempt3 at landing this. The previous attempt failed on Windows XP because the \Sessions\Session i… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 POBJECT_ATTRIBUTES object_attributes); 146 POBJECT_ATTRIBUTES object_attributes);
147 147
148 // Interception of NtOpenKeyEx on the child process. 148 // Interception of NtOpenKeyEx on the child process.
149 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKeyEx64( 149 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenKeyEx64(
150 PHANDLE key, ACCESS_MASK desired_access, 150 PHANDLE key, ACCESS_MASK desired_access,
151 POBJECT_ATTRIBUTES object_attributes, ULONG open_options); 151 POBJECT_ATTRIBUTES object_attributes, ULONG open_options);
152 152
153 // ----------------------------------------------------------------------- 153 // -----------------------------------------------------------------------
154 // Interceptors handled by the sync dispatcher. 154 // Interceptors handled by the sync dispatcher.
155 155
156 // Interception of CreateEventW on the child process. 156 // Interception of NtCreateEvent/NtOpenEvent on the child process.
157 SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW64( 157 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64(
158 LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, 158 PHANDLE event_handle, ACCESS_MASK desired_access,
159 BOOL initial_state, LPCWSTR name); 159 POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type,
160 BOOLEAN initial_state);
160 161
161 // Interception of CreateEventA on the child process. 162 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64(
162 SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventA64( 163 PHANDLE event_handle, ACCESS_MASK desired_access,
163 LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, 164 POBJECT_ATTRIBUTES object_attributes);
164 BOOL initial_state, LPCSTR name);
165
166 // Interception of OpenEventW on the child process.
167 SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW64(
168 DWORD desired_access, BOOL inherit_handle, LPCWSTR name);
169
170 // Interception of OpenEventA on the child process.
171 SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventA64(
172 DWORD desired_access, BOOL inherit_handle, LPCSTR name);
173 165
174 } // extern "C" 166 } // extern "C"
175 167
176 } // namespace sandbox 168 } // namespace sandbox
177 169
178 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ 170 #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