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

Unified 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: remove thread_attributes from IPC call, use nullptr Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/win/src/process_thread_policy.h
diff --git a/sandbox/win/src/process_thread_policy.h b/sandbox/win/src/process_thread_policy.h
index a66b52eb2f03801eb44c06e3a7366c34fb8933c0..8f9d4e24371ae63921062b5a49d57c99a60136cb 100644
--- a/sandbox/win/src/process_thread_policy.h
+++ b/sandbox/win/src/process_thread_policy.h
@@ -76,6 +76,18 @@ class ProcessPolicy {
const base::string16 &app_name,
const base::string16 &command_line,
PROCESS_INFORMATION* process_info);
+
+ // Processes a 'CreateThread()' request from the target.
+ // 'client_info' : the target process that is making the request.
+ // 'eval_result' : The desired policy action to accomplish.
+ static DWORD CreateThreadAction(EvalResult eval_result,
+ const ClientInfo& client_info,
+ SIZE_T stack_size,
+ LPTHREAD_START_ROUTINE start_address,
+ PVOID parameter,
+ DWORD creation_flags,
+ LPDWORD thread_id,
+ HANDLE* handle);
};
} // namespace sandbox

Powered by Google App Engine
This is Rietveld 408576698