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

Issue 18129002: Update the child process security policy to use explicit permission grants. (Closed)

Created:
7 years, 5 months ago by Greg Billock
Modified:
7 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, joi+watch-content_chromium.org, marja+watch_chromium.org, rginda+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Update the child process security policy to use explicit permission grants. This replaces the method taking generic permissions with specific interface methods. This makes using particular platform file flags an implementation detail, as well as restricting the kinds of permissions bundles client code can request to particular use bundles under the control of the security policy. R=vandebo@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=211018

Patch Set 1 #

Total comments: 6

Patch Set 2 : code layout #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase to head #

Total comments: 4

Patch Set 5 : Rename function to GrantCreateReadWriteFile #

Patch Set 6 : missed header #

Patch Set 7 : Change RVH to use FileChooserParam mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -148 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.cc View 1 2 3 4 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/file_handler_util.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc View 1 2 3 4 4 chunks +12 lines, -46 lines 0 comments Download
M chrome/browser/file_select_helper.h View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/file_select_helper.cc View 1 2 3 4 5 6 8 chunks +9 lines, -27 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 1 2 3 4 5 4 chunks +19 lines, -11 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 3 4 2 chunks +34 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 7 chunks +13 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 2 chunks +4 lines, -12 lines 0 comments Download
M content/public/browser/child_process_security_policy.h View 1 2 3 4 2 chunks +10 lines, -7 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Greg Billock
7 years, 5 months ago (2013-06-27 19:01:44 UTC) #1
vandebo (ex-Chrome)
LGTM https://codereview.chromium.org/18129002/diff/1/chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc File chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc (right): https://codereview.chromium.org/18129002/diff/1/chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc#newcode851 chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc:851: content::ChildProcessSecurityPolicy::GetInstance()->GrantReadFile( read is a subset of readwrite, so ...
7 years, 5 months ago (2013-06-27 22:35:17 UTC) #2
Greg Billock
+tsepez for security review https://codereview.chromium.org/18129002/diff/1/chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc File chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc (right): https://codereview.chromium.org/18129002/diff/1/chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc#newcode851 chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc:851: content::ChildProcessSecurityPolicy::GetInstance()->GrantReadFile( I saw this, but ...
7 years, 5 months ago (2013-06-28 18:40:33 UTC) #3
Greg Billock
On 2013/06/28 18:40:33, Greg Billock wrote: > +tsepez for security review > > https://codereview.chromium.org/18129002/diff/1/chrome/browser/chromeos/extensions/file_manager/file_handler_util.cc > ...
7 years, 5 months ago (2013-07-09 18:24:26 UTC) #4
Tom Sepez
> Ping tsepez. Are you around this week? Looking ...
7 years, 5 months ago (2013-07-09 18:44:29 UTC) #5
Tom Sepez
LGTM with nits. https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc#newcode845 content/browser/renderer_host/render_view_host_impl.cc:845: if (permissions == RenderViewHost::FILE_PERMISSION_WRITE) { nit: ...
7 years, 5 months ago (2013-07-09 18:52:50 UTC) #6
Greg Billock
https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc#newcode845 content/browser/renderer_host/render_view_host_impl.cc:845: if (permissions == RenderViewHost::FILE_PERMISSION_WRITE) { On 2013/07/09 18:52:50, Tom ...
7 years, 5 months ago (2013-07-09 21:09:50 UTC) #7
Greg Billock
On 2013/07/09 21:09:50, Greg Billock wrote: > https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc > File content/browser/renderer_host/render_view_host_impl.cc (right): > > https://codereview.chromium.org/18129002/diff/11001/content/browser/renderer_host/render_view_host_impl.cc#newcode845 ...
7 years, 5 months ago (2013-07-09 21:15:56 UTC) #8
bbudge
On 2013/07/09 21:15:56, Greg Billock wrote: > On 2013/07/09 21:09:50, Greg Billock wrote: > > ...
7 years, 5 months ago (2013-07-09 21:50:50 UTC) #9
sky
LGTM
7 years, 5 months ago (2013-07-09 21:53:20 UTC) #10
Greg Billock
On 2013/07/09 21:50:50, bbudge1 wrote: > On 2013/07/09 21:15:56, Greg Billock wrote: > > On ...
7 years, 5 months ago (2013-07-09 22:51:00 UTC) #11
bbudge
I see that I did modify this file, probably while doing some File Chooser work. ...
7 years, 5 months ago (2013-07-09 23:07:05 UTC) #12
jam
I don't see the reason for this. I'm apprehensive about having yet another place that ...
7 years, 5 months ago (2013-07-10 01:14:16 UTC) #13
satorux1
chrome/browser/chromeos/extensions/file_manager LGTM. The new code looks simpler in this directory.
7 years, 5 months ago (2013-07-10 06:34:09 UTC) #14
Greg Billock
On 2013/07/10 01:14:16, jam wrote: > I don't see the reason for this. I'm apprehensive ...
7 years, 5 months ago (2013-07-10 16:07:21 UTC) #15
jam
On 2013/07/10 16:07:21, Greg Billock wrote: > On 2013/07/10 01:14:16, jam wrote: > > I ...
7 years, 5 months ago (2013-07-10 17:16:28 UTC) #16
Greg Billock
On 2013/07/10 17:16:28, jam wrote: > On 2013/07/10 16:07:21, Greg Billock wrote: > > On ...
7 years, 5 months ago (2013-07-10 18:38:57 UTC) #17
Greg Billock
On 2013/07/10 18:38:57, Greg Billock wrote: > On 2013/07/10 17:16:28, jam wrote: > > On ...
7 years, 5 months ago (2013-07-10 19:18:06 UTC) #18
jam
lgtm
7 years, 5 months ago (2013-07-10 19:52:41 UTC) #19
bbudge
Still LGTM
7 years, 5 months ago (2013-07-10 20:02:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/18129002/50001
7 years, 5 months ago (2013-07-10 20:25:23 UTC) #21
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 04:37:27 UTC) #22
Message was sent while issue was closed.
Change committed as 211018

Powered by Google App Engine
This is Rietveld 408576698