Commit 97b0b8a4 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink Committed by Commit Bot

Support TYPE_DATA_PIPE in CanReadRequestBody.

On of several changes towards making uploading blobs with network service work.

Tested in a separate CL because multiple unrelated bugfixes are needed to make this
all work and testable (https://chromium-review.googlesource.com/c/chromium/src/+/963008).

Bug: 821878
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I33812ac556029066196b3fcbdb54d6bdbc041a86
Reviewed-on: https://chromium-review.googlesource.com/963007Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543188}
parent 4a2c67b2
...@@ -806,6 +806,10 @@ bool ChildProcessSecurityPolicyImpl::CanReadRequestBody( ...@@ -806,6 +806,10 @@ bool ChildProcessSecurityPolicyImpl::CanReadRequestBody(
// sufficient defense against access from an unrelated renderer. // sufficient defense against access from an unrelated renderer.
break; break;
case network::DataElement::TYPE_DATA_PIPE:
// Data is self-contained within |body| - no need to check access.
break;
case network::DataElement::TYPE_UNKNOWN: case network::DataElement::TYPE_UNKNOWN:
default: default:
// Fail safe - deny access. // Fail safe - deny access.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment