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

Unified Diff: content/common/sandbox_policy.cc

Issue 10389210: Add a sandbox policy for duplicating handles into the broker. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | sandbox/src/handle_dispatcher.cc » ('j') | sandbox/src/handle_policy.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_policy.cc
===================================================================
--- content/common/sandbox_policy.cc (revision 137447)
+++ content/common/sandbox_policy.cc (working copy)
@@ -389,6 +389,16 @@
if (result != sandbox::SBOX_ALL_OK)
return false;
+#ifdef USE_AURA
+ // GPU also needs to add sections to the browser for aura
+ // TODO(jschuh): refactor the GPU channel to remove this. crbug.com/128786
+ result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
+ sandbox::TargetPolicy::HANDLES_DUP_BROKER,
+ L"Section");
+ if (result != sandbox::SBOX_ALL_OK)
+ return false;
+#endif
+
AddGenericDllEvictionPolicy(policy);
#endif
return true;
« no previous file with comments | « no previous file | sandbox/src/handle_dispatcher.cc » ('j') | sandbox/src/handle_policy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698