OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |