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

Unified Diff: content/common/sandbox_policy.cc

Issue 10039001: NaCl: Supply Windows handle-passing function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweak types Created 8 years, 8 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 | « content/common/sandbox_policy.h ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_policy.cc
diff --git a/content/common/sandbox_policy.cc b/content/common/sandbox_policy.cc
index dd20e6bdf24da6ad84cb477d503cf125f045feea..a4349dd4d3c4304eb24f10efc334b256c2c4215d 100644
--- a/content/common/sandbox_policy.cc
+++ b/content/common/sandbox_policy.cc
@@ -383,7 +383,7 @@ bool AddPolicyForRenderer(sandbox::TargetPolicy* policy) {
sandbox::ResultCode result;
result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
sandbox::TargetPolicy::HANDLES_DUP_ANY,
- L"Section");
+ L"*");
jschuh 2012/04/12 22:42:03 Does this really need to be "*"?
Mark Seaborn 2012/04/13 00:50:28 OK, I wasn't sure if listing handle types bought u
if (result != sandbox::SBOX_ALL_OK) {
NOTREACHED();
return false;
@@ -476,6 +476,11 @@ bool BrokerDuplicateHandle(HANDLE source_handle,
return SBOX_ALL_OK == result;
}
+bool BrokerAddTargetPeer(HANDLE peer_process) {
+ ResultCode result = g_broker_services->AddTargetPeer(peer_process);
+ return SBOX_ALL_OK == result;
+}
+
base::ProcessHandle StartProcessWithAccess(CommandLine* cmd_line,
const FilePath& exposed_dir) {
« no previous file with comments | « content/common/sandbox_policy.h ('k') | ppapi/c/private/ppb_nacl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698