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

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

Issue 1225183003: CreateThread interception, to use CreateRemoteThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head 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) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 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 #ifndef SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 5 #ifndef SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 6 #define SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sandbox/win/src/policy_low_level.h" 10 #include "sandbox/win/src/policy_low_level.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Processes a 'CreateProcessW()' request from the target. 68 // Processes a 'CreateProcessW()' request from the target.
69 // 'client_info' : the target process that is making the request. 69 // 'client_info' : the target process that is making the request.
70 // 'eval_result' : The desired policy action to accomplish. 70 // 'eval_result' : The desired policy action to accomplish.
71 // 'app_name' : The full path of the process to be created. 71 // 'app_name' : The full path of the process to be created.
72 // 'command_line' : The command line passed to the created process. 72 // 'command_line' : The command line passed to the created process.
73 static DWORD CreateProcessWAction(EvalResult eval_result, 73 static DWORD CreateProcessWAction(EvalResult eval_result,
74 const ClientInfo& client_info, 74 const ClientInfo& client_info,
75 const base::string16 &app_name, 75 const base::string16 &app_name,
76 const base::string16 &command_line, 76 const base::string16 &command_line,
77 PROCESS_INFORMATION* process_info); 77 PROCESS_INFORMATION* process_info);
78
79 // Processes a 'CreateThread()' request from the target.
80 // 'client_info' : the target process that is making the request.
81 // 'eval_result' : The desired policy action to accomplish.
82 static DWORD CreateThreadAction(EvalResult eval_result,
83 const ClientInfo& client_info,
84 LPSECURITY_ATTRIBUTES thread_attributes,
85 SIZE_T stack_size,
86 LPTHREAD_START_ROUTINE start_address,
87 PVOID parameter,
88 DWORD creation_flags,
89 LPDWORD thread_id,
90 HANDLE* handle);
78 }; 91 };
79 92
80 } // namespace sandbox 93 } // namespace sandbox
81 94
82 95
83 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_ 96 #endif // SANDBOX_SRC_PROCESS_THREAD_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698