| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |