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

Issue 19723010: Pepper Message Filters: Port to use explicit permission grants in ChildProcessSecurityPolicy. (Closed)

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

Description

Pepper Message Filters: Port to use explicit permission grants in ChildProcessSecurityPolicy. This ports the Pepper message filters to use explicit permission grants instead of the base::PlatformFile bitmasks which are now deprecated. In the case that we have to deal with Pepper open flags, we now directly translate Pepper open flags to a series of explicit permissions checks instead of converting to base::PlatformFile bitmasks. BUG=262142 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214581

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : fix test #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : Merge #

Patch Set 13 : address jam comments #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -80 lines) Patch
M content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -2 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_flash_file_message_filter.cc View 1 2 3 10 chunks +40 lines, -26 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_security_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
A content/browser/renderer_host/pepper/pepper_security_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +54 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +27 lines, -17 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -9 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_file_io_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_helper_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_helper_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/pepper/ppb_file_ref_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M ppapi/proxy/flash_file_resource.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M ppapi/shared_impl/file_type_conversion.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
jam
https://codereview.chromium.org/19723010/diff/9001/content/public/browser/child_process_security_policy.h File content/public/browser/child_process_security_policy.h (right): https://codereview.chromium.org/19723010/diff/9001/content/public/browser/child_process_security_policy.h#newcode71 content/public/browser/child_process_security_policy.h:71: bool HasPermissionsForPepperMode(int child_id, const base::FilePath& file, nit: since this ...
7 years, 5 months ago (2013-07-22 23:46:41 UTC) #1
tommycli
jochen: Need review of content/browser/renderer_host dmichael: Need review of content/renderer/pepper tsepez: General security review. Thanks! ...
7 years, 5 months ago (2013-07-23 22:21:35 UTC) #2
Tom Sepez
Security stuff LGTM.
7 years, 5 months ago (2013-07-23 22:30:01 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/19723010/diff/20001/content/browser/renderer_host/pepper/pepper_security_helper.cc File content/browser/renderer_host/pepper/pepper_security_helper.cc (right): https://codereview.chromium.org/19723010/diff/20001/content/browser/renderer_host/pepper/pepper_security_helper.cc#newcode33 content/browser/renderer_host/pepper/pepper_security_helper.cc:33: return false; I don't think we can do this ...
7 years, 5 months ago (2013-07-24 17:02:23 UTC) #4
dmichael (off chromium)
+teravest
7 years, 5 months ago (2013-07-24 17:28:26 UTC) #5
teravest
On 2013/07/24 17:28:26, dmichael wrote: > +teravest I have the same concern with regard to ...
7 years, 5 months ago (2013-07-24 19:50:00 UTC) #6
tommycli
dmichael/teravest: To my knowledge, the ChildProcessSecurityPolicy before this change also always denies requests to APPEND. ...
7 years, 5 months ago (2013-07-24 21:00:12 UTC) #7
teravest
That's strange; there's an explicit test of PP_FILEOPENFLAG_APPEND in TestFileIO::TestReadWriteSetLength(). On Wed, Jul 24, 2013 ...
7 years, 5 months ago (2013-07-24 21:04:52 UTC) #8
teravest
In the FileIO test, I see that permission check passing when the append flag is ...
7 years, 5 months ago (2013-07-24 21:56:07 UTC) #9
tommycli
How bizzare! Thanks for confirming the issue. I will investigate and get back to you. ...
7 years, 5 months ago (2013-07-24 22:21:03 UTC) #10
tommycli
teravest: I have the answer to the mystery. I modified your print statement a little ...
7 years, 5 months ago (2013-07-25 19:49:20 UTC) #11
teravest
Thanks for the investigation! Your explanation (and plan) sound good to me. On Thu, Jul ...
7 years, 5 months ago (2013-07-25 19:52:28 UTC) #12
teravest
lgtm
7 years, 5 months ago (2013-07-25 20:15:37 UTC) #13
dmichael (off chromium)
lgtm for pepper OWNERS stuff
7 years, 5 months ago (2013-07-25 20:17:31 UTC) #14
tommycli
jochen: may I have an OWNER review
7 years, 5 months ago (2013-07-25 21:31:27 UTC) #15
jochen (gone - plz use gerrit)
lgtm
7 years, 5 months ago (2013-07-26 15:00:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19723010/59001
7 years, 5 months ago (2013-07-26 15:20:58 UTC) #17
tommycli
jam: May I get an OWNER review for content/content_browser.gypi ? Thanks.
7 years, 5 months ago (2013-07-26 15:40:23 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=17337
7 years, 5 months ago (2013-07-26 16:32:07 UTC) #19
tommycli
On 2013/07/26 15:40:23, tommycli wrote: > jam: May I get an OWNER review for content/content_browser.gypi ...
7 years, 4 months ago (2013-07-29 19:21:57 UTC) #20
jam
lgtm, sorry for the delay i just saw this. https://codereview.chromium.org/19723010/diff/59001/content/browser/renderer_host/pepper/pepper_security_helper.h File content/browser/renderer_host/pepper/pepper_security_helper.h (right): https://codereview.chromium.org/19723010/diff/59001/content/browser/renderer_host/pepper/pepper_security_helper.h#newcode9 content/browser/renderer_host/pepper/pepper_security_helper.h:9: ...
7 years, 4 months ago (2013-07-30 16:07:12 UTC) #21
tommycli
https://codereview.chromium.org/19723010/diff/59001/content/browser/renderer_host/pepper/pepper_security_helper.h File content/browser/renderer_host/pepper/pepper_security_helper.h (right): https://codereview.chromium.org/19723010/diff/59001/content/browser/renderer_host/pepper/pepper_security_helper.h#newcode9 content/browser/renderer_host/pepper/pepper_security_helper.h:9: #include "content/browser/child_process_security_policy_impl.h" On 2013/07/30 16:07:12, jam wrote: > nit: ...
7 years, 4 months ago (2013-07-30 17:52:41 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/19723010/73015
7 years, 4 months ago (2013-07-30 20:38:51 UTC) #23
commit-bot: I haz the power
Failed to apply patch for content/renderer/pepper/pepper_file_io_host.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-07-30 20:39:11 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/19723010/113001
7 years, 4 months ago (2013-07-30 22:03:57 UTC) #25
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 05:46:51 UTC) #26
Message was sent while issue was closed.
Change committed as 214581

Powered by Google App Engine
This is Rietveld 408576698