Bug 1575906: Allow the GMP process to duplicate Section handles to the main process. r=handyman

Differential Revision: https://phabricator.services.mozilla.com/D44237

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Bob Owen 2019-08-30 21:39:57 +00:00
parent e8f334670d
commit 17bddfd388

View File

@ -1229,6 +1229,15 @@ bool SandboxBroker::SetSecurityLevelForGMPlugin(SandboxLevel aLevel) {
result,
"With these static arguments AddRule should never fail, what happened?");
// The GMP process needs to be able to share memory with the main process for
// crash reporting.
result =
mPolicy->AddRule(sandbox::TargetPolicy::SUBSYS_HANDLES,
sandbox::TargetPolicy::HANDLES_DUP_BROKER, L"Section");
SANDBOX_ENSURE_SUCCESS(
result,
"With these static arguments AddRule should never fail, what happened?");
return true;
}
#undef SANDBOX_ENSURE_SUCCESS