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 <sddl.h> | 7 #include <sddl.h> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 dispatcher = new NamedPipeDispatcher(this); | 155 dispatcher = new NamedPipeDispatcher(this); |
156 ipc_targets_[IPC_CREATENAMEDPIPEW_TAG] = dispatcher; | 156 ipc_targets_[IPC_CREATENAMEDPIPEW_TAG] = dispatcher; |
157 | 157 |
158 dispatcher = new ThreadProcessDispatcher(this); | 158 dispatcher = new ThreadProcessDispatcher(this); |
159 ipc_targets_[IPC_NTOPENTHREAD_TAG] = dispatcher; | 159 ipc_targets_[IPC_NTOPENTHREAD_TAG] = dispatcher; |
160 ipc_targets_[IPC_NTOPENPROCESS_TAG] = dispatcher; | 160 ipc_targets_[IPC_NTOPENPROCESS_TAG] = dispatcher; |
161 ipc_targets_[IPC_CREATEPROCESSW_TAG] = dispatcher; | 161 ipc_targets_[IPC_CREATEPROCESSW_TAG] = dispatcher; |
162 ipc_targets_[IPC_NTOPENPROCESSTOKEN_TAG] = dispatcher; | 162 ipc_targets_[IPC_NTOPENPROCESSTOKEN_TAG] = dispatcher; |
163 ipc_targets_[IPC_NTOPENPROCESSTOKENEX_TAG] = dispatcher; | 163 ipc_targets_[IPC_NTOPENPROCESSTOKENEX_TAG] = dispatcher; |
| 164 ipc_targets_[IPC_CREATETHREAD_TAG] = dispatcher; |
164 | 165 |
165 dispatcher = new SyncDispatcher(this); | 166 dispatcher = new SyncDispatcher(this); |
166 ipc_targets_[IPC_CREATEEVENT_TAG] = dispatcher; | 167 ipc_targets_[IPC_CREATEEVENT_TAG] = dispatcher; |
167 ipc_targets_[IPC_OPENEVENT_TAG] = dispatcher; | 168 ipc_targets_[IPC_OPENEVENT_TAG] = dispatcher; |
168 | 169 |
169 dispatcher = new RegistryDispatcher(this); | 170 dispatcher = new RegistryDispatcher(this); |
170 ipc_targets_[IPC_NTCREATEKEY_TAG] = dispatcher; | 171 ipc_targets_[IPC_NTCREATEKEY_TAG] = dispatcher; |
171 ipc_targets_[IPC_NTOPENKEY_TAG] = dispatcher; | 172 ipc_targets_[IPC_NTOPENKEY_TAG] = dispatcher; |
172 | 173 |
173 dispatcher = new HandleDispatcher(this); | 174 dispatcher = new HandleDispatcher(this); |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 break; | 874 break; |
874 } | 875 } |
875 | 876 |
876 default: { return SBOX_ERROR_UNSUPPORTED; } | 877 default: { return SBOX_ERROR_UNSUPPORTED; } |
877 } | 878 } |
878 | 879 |
879 return SBOX_ALL_OK; | 880 return SBOX_ALL_OK; |
880 } | 881 } |
881 | 882 |
882 } // namespace sandbox | 883 } // namespace sandbox |
OLD | NEW |