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

Issue 19770009: PepperFileRefHost: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed)

Created:
7 years, 5 months ago by tommycli
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, tzik+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@0044-write-support-remove-child-process-security-policy-bitmask-usage
Visibility:
Public.

Description

PepperFileRefHost: Port to use explicit permission grants in ChildProcessSecurityPolicy. This updates the PepperFileRefHost classes to make use of explicit permission grants instead of base::PlatformFile bitmasks, which are being deprecated. Depends on: https://codereview.chromium.org/19599006/. BUG=262142 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213823

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : address tsepez comments #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : address kinuko comment. #

Total comments: 6

Patch Set 9 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -50 lines) Patch
M content/browser/fileapi/browser_file_system_helper.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/fileapi/browser_file_system_helper.cc View 1 2 3 4 5 6 7 8 2 chunks +23 lines, -24 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_external_file_ref_backend.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc View 1 2 3 4 1 chunk +29 lines, -4 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_ref_host.h View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_ref_host.cc View 1 2 3 4 5 8 chunks +27 lines, -10 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc View 1 2 3 4 2 chunks +45 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tommycli
I took a shot at the changes needed to Pepper. This review is not urgent.
7 years, 5 months ago (2013-07-18 18:45:13 UTC) #1
vandebo (ex-Chrome)
LGTM
7 years, 5 months ago (2013-07-19 17:22:22 UTC) #2
Tom Sepez
drive-by: a few nits. https://codereview.chromium.org/19770009/diff/9001/content/browser/fileapi/browser_file_system_helper.cc File content/browser/fileapi/browser_file_system_helper.cc (right): https://codereview.chromium.org/19770009/diff/9001/content/browser/fileapi/browser_file_system_helper.cc#newcode120 content/browser/fileapi/browser_file_system_helper.cc:120: if (policy->HasPermissionsForFileSystemFile(process_id, url, permissions)) nit: ...
7 years, 5 months ago (2013-07-19 18:39:28 UTC) #3
tommycli
tsepez: Addressed your comments. kinuko: Need owner review for content/browser/fileapi. dmichael: Need owner review on ...
7 years, 5 months ago (2013-07-23 21:12:35 UTC) #4
kinuko
https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc File content/browser/fileapi/browser_file_system_helper.cc (right): https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc#newcode149 content/browser/fileapi/browser_file_system_helper.cc:149: policy->GrantReadFile(process_id, *platform_path); Has situation changed so that we don't ...
7 years, 5 months ago (2013-07-24 09:25:22 UTC) #5
tommycli
https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc File content/browser/fileapi/browser_file_system_helper.cc (right): https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc#newcode149 content/browser/fileapi/browser_file_system_helper.cc:149: policy->GrantReadFile(process_id, *platform_path); On 2013/07/24 09:25:23, kinuko wrote: > Has ...
7 years, 5 months ago (2013-07-24 14:38:00 UTC) #6
kinuko
On 2013/07/24 14:38:00, tommycli wrote: > https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc > File content/browser/fileapi/browser_file_system_helper.cc (right): > > https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc#newcode149 > ...
7 years, 5 months ago (2013-07-24 14:47:55 UTC) #7
tommycli
On 2013/07/24 14:47:55, kinuko wrote: > On 2013/07/24 14:38:00, tommycli wrote: > > > https://codereview.chromium.org/19770009/diff/32001/content/browser/fileapi/browser_file_system_helper.cc ...
7 years, 5 months ago (2013-07-24 14:52:48 UTC) #8
kinuko
On 2013/07/24 14:52:48, tommycli wrote: > On 2013/07/24 14:47:55, kinuko wrote: > > On 2013/07/24 ...
7 years, 5 months ago (2013-07-24 15:00:42 UTC) #9
tommycli
On 2013/07/24 15:00:42, kinuko wrote: > On 2013/07/24 14:52:48, tommycli wrote: > > On 2013/07/24 ...
7 years, 5 months ago (2013-07-24 15:09:35 UTC) #10
kinuko
fileapi lgtm
7 years, 5 months ago (2013-07-24 15:24:10 UTC) #11
Tom Sepez
LGTM with the check back in.
7 years, 5 months ago (2013-07-24 16:51:13 UTC) #12
dmichael (off chromium)
+teravest, who's really familiar with this. Owners' lgtm for content/browser/renderer_host/pepper, but please wait for teravest@'s ...
7 years, 5 months ago (2013-07-24 17:27:43 UTC) #13
dmichael (off chromium)
7 years, 5 months ago (2013-07-24 17:45:19 UTC) #14
teravest
https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc File content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc (right): https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc#newcode135 content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc:135: if (!policy->CanReadFile(render_process_id_, path_) || Shouldn't this be &&? It ...
7 years, 5 months ago (2013-07-24 17:51:20 UTC) #15
tommycli
https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc File content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc (right): https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc#newcode135 content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc:135: if (!policy->CanReadFile(render_process_id_, path_) || On 2013/07/24 17:51:21, teravest wrote: ...
7 years, 5 months ago (2013-07-24 18:05:29 UTC) #16
teravest
lgtm On Wed, Jul 24, 2013 at 12:05 PM, <tommycli@chromium.org> wrote: > > https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc > ...
7 years, 5 months ago (2013-07-24 19:16:55 UTC) #17
tommycli
thanks. https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc File content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc (right): https://codereview.chromium.org/19770009/diff/40001/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc#newcode263 content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc:263: return PP_ERROR_FAILED; On 2013/07/24 18:05:30, tommycli wrote: > ...
7 years, 5 months ago (2013-07-24 20:53:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19770009/40001
7 years, 5 months ago (2013-07-24 21:54:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19770009/40001
7 years, 5 months ago (2013-07-25 13:22:30 UTC) #20
commit-bot: I haz the power
Failed to apply patch for content/browser/fileapi/browser_file_system_helper.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-25 13:22:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19770009/64001
7 years, 5 months ago (2013-07-25 16:34:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19770009/64001
7 years, 5 months ago (2013-07-26 01:08:31 UTC) #23
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 10:29:42 UTC) #24
Message was sent while issue was closed.
Change committed as 213823

Powered by Google App Engine
This is Rietveld 408576698