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/src/interceptors_64.h" | 5 #include "sandbox/win/src/interceptors_64.h" |
6 | 6 |
7 #include "sandbox/src/interceptors.h" | 7 #include "sandbox/win/src/interceptors.h" |
8 #include "sandbox/src/filesystem_interception.h" | 8 #include "sandbox/win/src/filesystem_interception.h" |
9 #include "sandbox/src/named_pipe_interception.h" | 9 #include "sandbox/win/src/named_pipe_interception.h" |
10 #include "sandbox/src/policy_target.h" | 10 #include "sandbox/win/src/policy_target.h" |
11 #include "sandbox/src/process_thread_interception.h" | 11 #include "sandbox/win/src/process_thread_interception.h" |
12 #include "sandbox/src/registry_interception.h" | 12 #include "sandbox/win/src/registry_interception.h" |
13 #include "sandbox/src/sandbox_nt_types.h" | 13 #include "sandbox/win/src/sandbox_nt_types.h" |
14 #include "sandbox/src/sandbox_types.h" | 14 #include "sandbox/win/src/sandbox_types.h" |
15 #include "sandbox/src/sync_interception.h" | 15 #include "sandbox/win/src/sync_interception.h" |
16 #include "sandbox/src/target_interceptions.h" | 16 #include "sandbox/win/src/target_interceptions.h" |
17 | 17 |
18 namespace sandbox { | 18 namespace sandbox { |
19 | 19 |
20 SANDBOX_INTERCEPT NtExports g_nt; | 20 SANDBOX_INTERCEPT NtExports g_nt; |
21 SANDBOX_INTERCEPT OriginalFunctions g_originals; | 21 SANDBOX_INTERCEPT OriginalFunctions g_originals; |
22 | 22 |
23 NTSTATUS WINAPI TargetNtMapViewOfSection64( | 23 NTSTATUS WINAPI TargetNtMapViewOfSection64( |
24 HANDLE section, HANDLE process, PVOID *base, ULONG_PTR zero_bits, | 24 HANDLE section, HANDLE process, PVOID *base, ULONG_PTR zero_bits, |
25 SIZE_T commit_size, PLARGE_INTEGER offset, PSIZE_T view_size, | 25 SIZE_T commit_size, PLARGE_INTEGER offset, PSIZE_T view_size, |
26 SECTION_INHERIT inherit, ULONG allocation_type, ULONG protect) { | 26 SECTION_INHERIT inherit, ULONG allocation_type, ULONG protect) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW64( | 261 SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW64( |
262 ACCESS_MASK desired_access, BOOL inherit_handle, LPCWSTR name) { | 262 ACCESS_MASK desired_access, BOOL inherit_handle, LPCWSTR name) { |
263 OpenEventWFunction orig_fn = reinterpret_cast< | 263 OpenEventWFunction orig_fn = reinterpret_cast< |
264 OpenEventWFunction>(g_originals[OPEN_EVENT_ID]); | 264 OpenEventWFunction>(g_originals[OPEN_EVENT_ID]); |
265 return TargetOpenEventW(orig_fn, desired_access, inherit_handle, name); | 265 return TargetOpenEventW(orig_fn, desired_access, inherit_handle, name); |
266 } | 266 } |
267 | 267 |
268 } // namespace sandbox | 268 } // namespace sandbox |
OLD | NEW |