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

Unified Diff: content/common/sandbox_win.cc

Issue 1296223005: Continuing changes for lpc proxy Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | content/public/renderer/render_font_warmup_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_win.cc
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc
index 110edb8a6812438efa13d1d1549568dfdc6553b0..5521f8bd10b3a21b4d8f2773a1acd19e35054767 100644
--- a/content/common/sandbox_win.cc
+++ b/content/common/sandbox_win.cc
@@ -712,6 +712,11 @@ base::Process StartSandboxedProcess(
base::UintToString(reinterpret_cast<unsigned int>(shared_handle)));
}
}
+ if (policy->AddRule(sandbox::TargetPolicy::SUBSYS_LPC,
+ sandbox::TargetPolicy::ALPC_CONNECT_ALLOW,
+ L"*") != sandbox::SBOX_ALL_OK) {
+ return base::Process();
+ }
#endif
} else {
// Hack for Google Desktop crash. Trick GD into not injecting its DLL into
« no previous file with comments | « no previous file | content/public/renderer/render_font_warmup_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698