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

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed)

Created:
5 years, 6 months ago by Will Harris
Modified:
5 years, 6 months ago
Reviewers:
Mark Seaborn, jschuh, sky, nasko
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, rickyz+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, Robert Sesek
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement GetSandboxType() on all platforms and implement for all process types. This fixes a small issue where bootstrap sandbox would never be enabled on OS X. (Note: bootstrap sandbox is disabled anyway until crbug.com/501128 can be fixed.) Move App Container SID generation to embedder so it can be different for each type of child process. Move App Container policy code to sandbox_win.cc BUG=499523, 382931 Committed: https://crrev.com/182da09cea04f762ebd006083878a1a6b143b4dd Cr-Commit-Position: refs/heads/master@{#335973}

Patch Set 1 #

Total comments: 14

Patch Set 2 : rebase #

Patch Set 3 : code review comments #

Patch Set 4 : mega rebase #

Patch Set 5 : do not call base class from chrome's contentbrowserclient #

Total comments: 10

Patch Set 6 : code review comments #

Patch Set 7 : a few comment nits #

Patch Set 8 : a few comment nits #

Patch Set 9 : keep rebasing keep rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -99 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 3 chunks +50 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/nacl.gyp View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A + components/nacl/common/nacl_sandbox_type.h View 2 chunks +4 lines, -4 lines 0 comments Download
D components/nacl/common/nacl_sandbox_type_mac.h View 1 chunk +0 lines, -16 lines 0 comments Download
M components/nacl/loader/nacl_main_platform_delegate_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/bootstrap_sandbox_mac.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 4 5 6 7 8 2 chunks +9 lines, -17 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M content/common/sandbox_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_win.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
A + content/public/common/sandbox_type.h View 2 chunks +5 lines, -5 lines 0 comments Download
D content/public/common/sandbox_type_mac.h View 1 chunk +0 lines, -36 lines 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.h View 1 2 3 4 5 6 2 chunks +4 lines, -10 lines 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
Will Harris
PTAL First part of two CLs to enable App Container on PPAPI process. The next ...
5 years, 6 months ago (2015-06-16 18:20:33 UTC) #3
Will Harris
https://codereview.chromium.org/1189823003/ should fix the trybot issues.
5 years, 6 months ago (2015-06-16 23:31:53 UTC) #4
Will Harris
the OS X bots seem happy now, so PTAL. Thanks!
5 years, 6 months ago (2015-06-17 16:30:14 UTC) #5
nasko
Mostly nits, though I have one question about browser tests in content/. https://codereview.chromium.org/1185333003/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc ...
5 years, 6 months ago (2015-06-19 12:18:20 UTC) #6
jschuh
https://codereview.chromium.org/1185333003/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/1185333003/diff/1/content/common/sandbox_win.cc#newcode579 content/common/sandbox_win.cc:579: void MaybeAddAppContainerPolicy(sandbox::TargetPolicy* policy, On 2015/06/19 12:18:19, nasko (paris) wrote: ...
5 years, 6 months ago (2015-06-19 14:05:08 UTC) #7
Will Harris
question on the preferred way of implementing GetAppContainerSidForSandboxType on non Chrome embedders. https://codereview.chromium.org/1185333003/diff/1/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h ...
5 years, 6 months ago (2015-06-23 16:21:12 UTC) #8
nasko
https://codereview.chromium.org/1185333003/diff/1/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/1185333003/diff/1/content/public/browser/content_browser_client.h#newcode647 content/public/browser/content_browser_client.h:647: virtual base::string16 GetAppContainerSidForSandboxType( On 2015/06/23 16:21:11, Will Harris wrote: ...
5 years, 6 months ago (2015-06-24 08:04:08 UTC) #9
Will Harris
PTAL. Thanks. https://codereview.chromium.org/1185333003/diff/1/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/1185333003/diff/1/content/common/sandbox_win.cc#newcode579 content/common/sandbox_win.cc:579: void MaybeAddAppContainerPolicy(sandbox::TargetPolicy* policy, On 2015/06/19 14:05:08, jschuh ...
5 years, 6 months ago (2015-06-24 11:37:09 UTC) #10
nasko
content/ LGTM with a few nits. https://codereview.chromium.org/1185333003/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1185333003/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2374 chrome/browser/chrome_content_browser_client.cc:2374: return sid + ...
5 years, 6 months ago (2015-06-24 13:11:38 UTC) #11
Will Harris
Thanks. All done. PTAL other OWNERS: mseaborn -> components/nacl jschuh -> content/common/sandbox_win.cc sky -> chrome/common/chrome_content_client.cc ...
5 years, 6 months ago (2015-06-24 15:17:20 UTC) #12
Mark Seaborn
On 2015/06/24 15:17:20, Will Harris wrote: > Thanks. All done. PTAL other OWNERS: > > ...
5 years, 6 months ago (2015-06-24 15:48:19 UTC) #13
sky
chrome/common/chrome_content_client.cc LGTM
5 years, 6 months ago (2015-06-24 15:57:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185333003/160001
5 years, 6 months ago (2015-06-24 18:44:00 UTC) #17
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 6 months ago (2015-06-24 19:23:13 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-24 19:24:04 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/182da09cea04f762ebd006083878a1a6b143b4dd
Cr-Commit-Position: refs/heads/master@{#335973}

Powered by Google App Engine
This is Rietveld 408576698