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

Issue 177863002: Refactor configuration of sandboxes - first steps (Closed)

Created:
6 years, 10 months ago by aberent
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactor configuration of sandboxes - first steps See https://docs.google.com/document/d/1H-hCsIcMsAEP0fWHimbuiNA-Hc9eXEmR94eb-2RQAhA/edit?usp=sharing for background. This moves all process type dependent decisions on how to create Linux processes (not how to sandbox them once created, not Android) into the launch delegates and makes the arguments to the ChildProcessLauncher constructor and BrowserChildProcessHostImpl::Launch OS independent. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256802

Patch Set 1 : Fix Windows compile problem #

Patch Set 2 : Fix nacl sandbox options on Linux #

Total comments: 33

Patch Set 3 : Respond to review comments from jam@ #

Total comments: 8

Patch Set 4 : Respond to further review comments from jam@ #

Total comments: 4

Patch Set 5 : Fix remaining nits and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -195 lines) Patch
M chrome/chrome_exe.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/nacl_broker_host_win.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 chunks +26 lines, -13 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/child_process_launcher.h View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 6 chunks +12 lines, -43 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 chunks +26 lines, -13 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 4 4 chunks +22 lines, -13 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 chunks +33 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 4 chunks +26 lines, -12 lines 0 comments Download
M content/browser/utility_process_host_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 3 chunks +46 lines, -28 lines 0 comments Download
M content/browser/worker_host/worker_process_host.cc View 1 2 5 chunks +29 lines, -15 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/browser_child_process_host.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.h View 1 2 3 4 3 chunks +24 lines, -4 lines 0 comments Download
A content/public/common/sandboxed_process_launcher_delegate.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
aberent
mseaborn@chromium.org: Please review changes in nacl component jam@chromium.org: Please review changes in content. jln@chromium.org: Security ...
6 years, 10 months ago (2014-02-26 15:08:34 UTC) #1
jam
https://codereview.chromium.org/177863002/diff/180001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/177863002/diff/180001/components/nacl/browser/nacl_process_host.cc#newcode152 components/nacl/browser/nacl_process_host.cc:152: #elif defined(OS_POSIX) why have two implementations in this file ...
6 years, 10 months ago (2014-02-26 19:47:51 UTC) #2
jam
https://codereview.chromium.org/177863002/diff/180001/content/public/common/sandboxed_process_launcher_delegate.h File content/public/common/sandboxed_process_launcher_delegate.h (right): https://codereview.chromium.org/177863002/diff/180001/content/public/common/sandboxed_process_launcher_delegate.h#newcode40 content/public/common/sandboxed_process_launcher_delegate.h:40: virtual void ShouldSandbox(bool* in_sandbox) {} oh i forgot to ...
6 years, 10 months ago (2014-02-26 22:45:13 UTC) #3
aberent
https://codereview.chromium.org/177863002/diff/180001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/177863002/diff/180001/components/nacl/browser/nacl_process_host.cc#newcode152 components/nacl/browser/nacl_process_host.cc:152: #elif defined(OS_POSIX) On 2014/02/26 19:47:52, jam wrote: > why ...
6 years, 9 months ago (2014-02-28 08:51:06 UTC) #4
aberent
cpu@chromium.org: Please review changes in sandbox_win.cc as owner.
6 years, 9 months ago (2014-02-28 08:52:57 UTC) #5
jam
lgtm https://codereview.chromium.org/177863002/diff/180001/content/browser/worker_host/worker_process_host.cc File content/browser/worker_host/worker_process_host.cc (right): https://codereview.chromium.org/177863002/diff/180001/content/browser/worker_host/worker_process_host.cc#newcode113 content/browser/worker_host/worker_process_host.cc:113: } On 2014/02/28 08:51:07, aberent wrote: > On ...
6 years, 9 months ago (2014-02-28 18:07:41 UTC) #6
aberent
https://codereview.chromium.org/177863002/diff/190001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/177863002/diff/190001/components/nacl/browser/nacl_process_host.cc#newcode171 components/nacl/browser/nacl_process_host.cc:171: On 2014/02/28 18:07:43, jam wrote: > nit: no blank ...
6 years, 9 months ago (2014-02-28 21:17:27 UTC) #7
jam
thanks, nice cleanup!
6 years, 9 months ago (2014-02-28 21:50:37 UTC) #8
Mark Seaborn
Please fill out "BUG=" in the commit message, if only with "none". LGTM for components/nacl. ...
6 years, 9 months ago (2014-02-28 22:12:23 UTC) #9
jam
On 2014/02/28 22:12:23, Mark Seaborn wrote: > Please fill out "BUG=" in the commit message, ...
6 years, 9 months ago (2014-03-03 20:31:41 UTC) #10
Mark Seaborn
On 3 March 2014 12:31, <jam@chromium.org> wrote: > On 2014/02/28 22:12:23, Mark Seaborn wrote: > ...
6 years, 9 months ago (2014-03-03 20:38:04 UTC) #11
aberent
jln@, cpu@ - Any idea when you will be able to review this? Subject to ...
6 years, 9 months ago (2014-03-05 10:24:32 UTC) #12
cpu_(ooo_6.6-7.5)
lgtm
6 years, 9 months ago (2014-03-07 18:45:54 UTC) #13
jln (very slow on Chromium)
lgtm as well. Note that the "Zygote = Setuid sandbox" equivalency needs to go away ...
6 years, 9 months ago (2014-03-07 20:18:42 UTC) #14
aberent
https://codereview.chromium.org/177863002/diff/210001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/177863002/diff/210001/components/nacl/browser/nacl_process_host.cc#newcode190 components/nacl/browser/nacl_process_host.cc:190: On 2014/02/28 22:12:24, Mark Seaborn wrote: > Nit: don't ...
6 years, 9 months ago (2014-03-12 21:58:58 UTC) #15
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 9 months ago (2014-03-12 22:00:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/177863002/230001
6 years, 9 months ago (2014-03-12 22:02:17 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 04:22:57 UTC) #18
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 9 months ago (2014-03-13 04:22:58 UTC) #19
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 9 months ago (2014-03-13 10:08:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/177863002/230001
6 years, 9 months ago (2014-03-13 10:08:56 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 10:10:12 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-13 10:10:15 UTC) #23
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 9 months ago (2014-03-13 10:36:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/177863002/230001
6 years, 9 months ago (2014-03-13 10:36:13 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 11:35:17 UTC) #26
Message was sent while issue was closed.
Change committed as 256802

Powered by Google App Engine
This is Rietveld 408576698