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

Unified 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: fix up casts Created 4 years, 10 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
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.h ('k') | sandbox/win/src/top_level_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/sandbox_policy_base.cc
diff --git a/sandbox/win/src/sandbox_policy_base.cc b/sandbox/win/src/sandbox_policy_base.cc
index dc3ed1f7f9eb13d58a031b0f766d2c2779d9712d..f7002bfe73e7730d45a5c762b675bb61dbf9202f 100644
--- a/sandbox/win/src/sandbox_policy_base.cc
+++ b/sandbox/win/src/sandbox_policy_base.cc
@@ -133,6 +133,7 @@ PolicyBase::PolicyBase()
delayed_integrity_level_(INTEGRITY_LEVEL_LAST),
mitigations_(0),
delayed_mitigations_(0),
+ is_csrss_connected_(true),
policy_maker_(NULL),
policy_(NULL),
lowbox_sid_(NULL) {
@@ -625,6 +626,13 @@ bool PolicyBase::OnJobEmpty(HANDLE job) {
return true;
}
+void PolicyBase::SetDisconnectCsrss() {
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ is_csrss_connected_ = false;
+ AddKernelObjectToClose(L"ALPC Port", NULL);
+ }
+}
+
EvalResult PolicyBase::EvalPolicy(int service,
CountedParameterSetBase* params) {
if (NULL != policy_) {
@@ -677,7 +685,7 @@ bool PolicyBase::SetupAllInterceptions(TargetProcess* target) {
}
}
- if (!SetupBasicInterceptions(&manager))
+ if (!SetupBasicInterceptions(&manager, is_csrss_connected_))
return false;
if (!manager.InitializeInterceptions())
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.h ('k') | sandbox/win/src/top_level_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698