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

Issue 2869203003: Add the SeatbeltExec classes to facilitate the V2 sandbox. (Closed)

Created:
3 years, 7 months ago by Greg K
Modified:
3 years, 7 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add the SeatbeltExec classes to facilitate the V2 sandbox. This adds the SeatbeltExec classes and unit tests. These classes are used to pipe data, such as the sandbox profile and parameters, from the browser process to the helper process which launces the sandboxed renderers. BUG=689306 Review-Url: https://codereview.chromium.org/2869203003 Cr-Commit-Position: refs/heads/master@{#472658} Committed: https://chromium.googlesource.com/chromium/src/+/169c4a19654509f37de918d8aee9df4ad343cc2a

Patch Set 1 #

Patch Set 2 : Fix component build #

Patch Set 3 : Fix component build #

Patch Set 4 : Quiet logging from unit tests #

Total comments: 51

Patch Set 5 : Address review feedback #

Patch Set 6 : Remove path which is not on 10.9 #

Total comments: 29

Patch Set 7 : Cleanup per review #

Total comments: 6

Patch Set 8 : Fix the last few nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -3 lines) Patch
M sandbox/mac/BUILD.gn View 1 2 3 4 5 6 4 chunks +19 lines, -0 lines 0 comments Download
M sandbox/mac/sandbox_mac_compiler_unittest.mm View 1 2 3 4 chunks +4 lines, -2 lines 0 comments Download
M sandbox/mac/sandbox_mac_compiler_v2_unittest.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc View 1 2 3 4 5 6 1 chunk +86 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt.proto View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt_exec.h View 1 2 3 4 5 6 7 1 chunk +88 lines, -0 lines 0 comments Download
A sandbox/mac/seatbelt_exec.cc View 1 2 3 4 5 6 1 chunk +133 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (33 generated)
Greg K
PTAL. Thanks, Greg
3 years, 7 months ago (2017-05-09 22:34:21 UTC) #3
Robert Sesek
In the CL description, change the word "land" to "add" or "create." CLs are _landed_, ...
3 years, 7 months ago (2017-05-10 15:25:29 UTC) #14
Robert Sesek
Also, the trybots have test failures: [17914:771:0509/165037.446933:6822977355062:ERROR:seatbelt_exec.cc(120)] Failed to initialize sandbox: --1 line 5: unbound ...
3 years, 7 months ago (2017-05-10 17:53:28 UTC) #15
Greg K
On 2017/05/10 17:53:28, Robert Sesek wrote: > Also, the trybots have test failures: > > ...
3 years, 7 months ago (2017-05-10 20:50:50 UTC) #17
Greg K
https://codereview.chromium.org/2869203003/diff/60001/sandbox/mac/BUILD.gn File sandbox/mac/BUILD.gn (right): https://codereview.chromium.org/2869203003/diff/60001/sandbox/mac/BUILD.gn#newcode37 sandbox/mac/BUILD.gn:37: proto_library("seatbelt_proto") { On 2017/05/10 15:25:28, Robert Sesek wrote: > ...
3 years, 7 months ago (2017-05-11 17:44:16 UTC) #25
Robert Sesek
https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc File sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc (right): https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc#newcode31 sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc:31: mac::SandboxPolicy policy; nit: consistency in referring to this type; ...
3 years, 7 months ago (2017-05-15 21:05:24 UTC) #28
Greg K
https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc File sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc (right): https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc#newcode31 sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc:31: mac::SandboxPolicy policy; On 2017/05/15 21:05:24, Robert Sesek wrote: > ...
3 years, 7 months ago (2017-05-17 17:57:24 UTC) #33
Robert Sesek
Just a few nits! https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/seatbelt_exec.h File sandbox/mac/seatbelt_exec.h (right): https://codereview.chromium.org/2869203003/diff/100001/sandbox/mac/seatbelt_exec.h#newcode69 sandbox/mac/seatbelt_exec.h:69: int ApplySandboxProfile(const mac::SandboxPolicy& sandbox_policy); On ...
3 years, 7 months ago (2017-05-17 18:35:26 UTC) #34
Greg K
PTAL. The trybot failure seems unrelated to I will re-run it. - Greg https://codereview.chromium.org/2869203003/diff/120001/sandbox/mac/seatbelt_exec.h File ...
3 years, 7 months ago (2017-05-17 21:40:08 UTC) #39
Robert Sesek
LGTM
3 years, 7 months ago (2017-05-17 21:41:50 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2869203003/140001
3 years, 7 months ago (2017-05-17 22:46:26 UTC) #42
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 04:17:56 UTC) #45
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/169c4a19654509f37de918d8aee9...

Powered by Google App Engine
This is Rietveld 408576698