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

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

Issue 1225183003: CreateThread interception, to use CreateRemoteThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks from review Created 5 years 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
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 <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
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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 break; 875 break;
875 } 876 }
876 877
877 default: { return SBOX_ERROR_UNSUPPORTED; } 878 default: { return SBOX_ERROR_UNSUPPORTED; }
878 } 879 }
879 880
880 return SBOX_ALL_OK; 881 return SBOX_ALL_OK;
881 } 882 }
882 883
883 } // namespace sandbox 884 } // namespace sandbox
OLDNEW
« sandbox/win/src/process_thread_policy.cc ('K') | « sandbox/win/src/sandbox_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698