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

Side by Side Diff: sandbox/win/src/sandbox_policy_base.cc

Issue 333773005: Intercept the user32!SystemParametersInfoW API in the win32k user gdi lockdown mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/process_mitigations_win32k_policy.cc ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/sandbox_policy_base.h" 5 #include "sandbox/win/src/sandbox_policy_base.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/win/windows_version.h" 10 #include "base/win/windows_version.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ipc_targets_[IPC_NTCREATEKEY_TAG] = dispatcher; 125 ipc_targets_[IPC_NTCREATEKEY_TAG] = dispatcher;
126 ipc_targets_[IPC_NTOPENKEY_TAG] = dispatcher; 126 ipc_targets_[IPC_NTOPENKEY_TAG] = dispatcher;
127 127
128 dispatcher = new HandleDispatcher(this); 128 dispatcher = new HandleDispatcher(this);
129 ipc_targets_[IPC_DUPLICATEHANDLEPROXY_TAG] = dispatcher; 129 ipc_targets_[IPC_DUPLICATEHANDLEPROXY_TAG] = dispatcher;
130 130
131 dispatcher = new ProcessMitigationsWin32KDispatcher(this); 131 dispatcher = new ProcessMitigationsWin32KDispatcher(this);
132 ipc_targets_[IPC_GDI_GDIDLLINITIALIZE_TAG] = dispatcher; 132 ipc_targets_[IPC_GDI_GDIDLLINITIALIZE_TAG] = dispatcher;
133 ipc_targets_[IPC_GDI_GETSTOCKOBJECT_TAG] = dispatcher; 133 ipc_targets_[IPC_GDI_GETSTOCKOBJECT_TAG] = dispatcher;
134 ipc_targets_[IPC_USER_REGISTERCLASSW_TAG] = dispatcher; 134 ipc_targets_[IPC_USER_REGISTERCLASSW_TAG] = dispatcher;
135 ipc_targets_[IPC_USER_SYSTEMPARAMETERSINFOW_TAG] = dispatcher;
135 } 136 }
136 137
137 PolicyBase::~PolicyBase() { 138 PolicyBase::~PolicyBase() {
138 TargetSet::iterator it; 139 TargetSet::iterator it;
139 for (it = targets_.begin(); it != targets_.end(); ++it) { 140 for (it = targets_.begin(); it != targets_.end(); ++it) {
140 TargetProcess* target = (*it); 141 TargetProcess* target = (*it);
141 delete target; 142 delete target;
142 } 143 }
143 delete ipc_targets_[IPC_NTCREATEFILE_TAG]; 144 delete ipc_targets_[IPC_NTCREATEFILE_TAG];
144 delete ipc_targets_[IPC_CREATENAMEDPIPEW_TAG]; 145 delete ipc_targets_[IPC_CREATENAMEDPIPEW_TAG];
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 706
706 // Finally, setup imports on the target so the interceptions can work. 707 // Finally, setup imports on the target so the interceptions can work.
707 return SetupNtdllImports(target); 708 return SetupNtdllImports(target);
708 } 709 }
709 710
710 bool PolicyBase::SetupHandleCloser(TargetProcess* target) { 711 bool PolicyBase::SetupHandleCloser(TargetProcess* target) {
711 return handle_closer_.InitializeTargetHandles(target); 712 return handle_closer_.InitializeTargetHandles(target);
712 } 713 }
713 714
714 } // namespace sandbox 715 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/process_mitigations_win32k_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698