Bug 1652463: Add rule to allow socket process to create server side of our IPC pipes. r=handyman

Differential Revision: https://phabricator.services.mozilla.com/D83976
This commit is contained in:
Bob Owen 2021-08-25 11:43:46 +00:00
parent 742774f709
commit 86f8ba4dc4

View File

@ -1065,6 +1065,14 @@ bool SandboxBroker::SetSecurityLevelForRDDProcess() {
result,
"With these static arguments AddRule should never fail, what happened?");
// Add rule to allow process to create the server side of our IPC pipes.
result = mPolicy->AddRule(sandbox::TargetPolicy::SUBSYS_NAMED_PIPES,
sandbox::TargetPolicy::NAMEDPIPES_ALLOW_ANY,
L"\\\\.\\pipe\\chrome.*");
MOZ_RELEASE_ASSERT(
sandbox::SBOX_ALL_OK == result,
"With these static arguments AddRule should never fail, what happened?");
// Add the policy for the client side of the crash server pipe.
result = mPolicy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES,
sandbox::TargetPolicy::FILES_ALLOW_ANY,