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

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

Issue 318603003: Sandbox policy and intercepts for the MITIGATION_WIN32K_DISABLE policy for renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed presubmit warnings Created 6 years, 6 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 | 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Interception of NtCreateEvent/NtOpenEvent on the child process. 147 // Interception of NtCreateEvent/NtOpenEvent on the child process.
148 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64( 148 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64(
149 PHANDLE event_handle, ACCESS_MASK desired_access, 149 PHANDLE event_handle, ACCESS_MASK desired_access,
150 POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type, 150 POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type,
151 BOOLEAN initial_state); 151 BOOLEAN initial_state);
152 152
153 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( 153 SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64(
154 PHANDLE event_handle, ACCESS_MASK desired_access, 154 PHANDLE event_handle, ACCESS_MASK desired_access,
155 POBJECT_ATTRIBUTES object_attributes); 155 POBJECT_ATTRIBUTES object_attributes);
156 156
157 // -----------------------------------------------------------------------
158 // Interceptors handled by the process mitigations win32k lockdown code.
159
160 // Interceptor for the GdiDllInitialize function.
161 SANDBOX_INTERCEPT BOOL WINAPI TargetGdiDllInitialize64(
162 HANDLE dll,
163 DWORD reason);
164
165 // Interceptor for the GetStockObject function.
166 SANDBOX_INTERCEPT HGDIOBJ WINAPI TargetGetStockObject64(int object);
167
168 // Interceptor for the RegisterClassW function.
169 SANDBOX_INTERCEPT ATOM WINAPI TargetRegisterClassW64(const WNDCLASS* wnd_class);
170
157 } // extern "C" 171 } // extern "C"
158 172
159 } // namespace sandbox 173 } // namespace sandbox
160 174
161 #endif // SANDBOX_SRC_INTERCEPTORS_64_H_ 175 #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