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

Issue 2891933005: Plumb sandbox rules through the helper executable. (Closed)

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

Description

Plumb sandbox rules through the helper executable. Add code to the helper executable to send it the sandbox rules. The helper executable will apply the sandbox rules to its process and re-execute itself in the sandbox. NOPRESUBMIT=true BUG=689306 CQ-DEPEND=2907663002 Review-Url: https://codereview.chromium.org/2891933005 Cr-Commit-Position: refs/heads/master@{#475664} Committed: https://chromium.googlesource.com/chromium/src/+/c95caf021bebd3bc58dafc206ff9f43678dc8d73

Patch Set 1 #

Patch Set 2 : Add unit test for the new API #

Patch Set 3 : Switch to new and delete #

Total comments: 17

Patch Set 4 : Address review feedback #

Total comments: 13

Patch Set 5 : Cleanup next round of feedback #

Total comments: 12

Patch Set 6 : Fix the last nits #

Patch Set 7 : Rebase patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -23 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_exe_main_mac.cc View 1 2 3 4 5 6 3 chunks +93 lines, -19 lines 0 comments Download
M sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M sandbox/mac/seatbelt_exec.h View 2 chunks +10 lines, -0 lines 0 comments Download
M sandbox/mac/seatbelt_exec.cc View 1 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 62 (45 generated)
Greg K
On 2017/05/22 18:01:51, Greg K wrote: > mailto:kerrnel@chromium.org changed reviewers: > + mailto:mark@chromium.org PTAL. Thanks, ...
3 years, 7 months ago (2017-05-22 18:02:02 UTC) #12
Greg K
https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc#newcode115 chrome/app/chrome_exe_main_mac.cc:115: if (!exec_path) { I know Chrome doesn't use exceptions, ...
3 years, 7 months ago (2017-05-22 18:34:03 UTC) #16
Mark Mentovai
https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc#newcode33 chrome/app/chrome_exe_main_mac.cc:33: constexpr char exec_param[] = "EXECUTABLE_PATH"; WHY ARE WE YELLING? ...
3 years, 7 months ago (2017-05-22 18:53:18 UTC) #17
Greg K
https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/40001/chrome/app/chrome_exe_main_mac.cc#newcode33 chrome/app/chrome_exe_main_mac.cc:33: constexpr char exec_param[] = "EXECUTABLE_PATH"; On 2017/05/22 18:53:18, Mark ...
3 years, 7 months ago (2017-05-22 23:17:55 UTC) #18
Mark Mentovai
https://codereview.chromium.org/2891933005/diff/60001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/60001/chrome/app/chrome_exe_main_mac.cc#newcode55 chrome/app/chrome_exe_main_mac.cc:55: return -1; This isn’t right for something that’s going ...
3 years, 7 months ago (2017-05-23 20:41:29 UTC) #25
Greg K
https://codereview.chromium.org/2891933005/diff/60001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/60001/chrome/app/chrome_exe_main_mac.cc#newcode55 chrome/app/chrome_exe_main_mac.cc:55: return -1; On 2017/05/23 20:41:29, Mark Mentovai wrote: > ...
3 years, 7 months ago (2017-05-23 23:31:30 UTC) #31
Mark Mentovai
LG otherwise! https://codereview.chromium.org/2891933005/diff/80001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/80001/chrome/app/chrome_exe_main_mac.cc#newcode34 chrome/app/chrome_exe_main_mac.cc:34: constexpr char exec_param[] = "EXECUTABLE_PATH"; Not really ...
3 years, 7 months ago (2017-05-24 20:42:42 UTC) #32
Greg K
https://codereview.chromium.org/2891933005/diff/80001/chrome/app/chrome_exe_main_mac.cc File chrome/app/chrome_exe_main_mac.cc (right): https://codereview.chromium.org/2891933005/diff/80001/chrome/app/chrome_exe_main_mac.cc#newcode34 chrome/app/chrome_exe_main_mac.cc:34: constexpr char exec_param[] = "EXECUTABLE_PATH"; On 2017/05/24 20:42:42, Mark ...
3 years, 7 months ago (2017-05-25 17:52:06 UTC) #36
Greg K
thakis@chromium.org: Please review changes in chrome/ Thanks, Greg
3 years, 7 months ago (2017-05-25 19:02:58 UTC) #42
Nico
lgtm nit: i would've done the c -> cc rename in a separate change, to ...
3 years, 7 months ago (2017-05-25 19:13:24 UTC) #43
Greg K
On 2017/05/25 19:13:24, Nico wrote: > lgtm > > nit: i would've done the c ...
3 years, 7 months ago (2017-05-25 19:14:50 UTC) #44
chromium-reviews
Up to you; you're the one most likely to look at `git blame` for the ...
3 years, 7 months ago (2017-05-25 19:15:27 UTC) #45
Greg K
On 2017/05/25 19:15:27, chromium-reviews wrote: > Up to you; you're the one most likely to ...
3 years, 7 months ago (2017-05-25 22:14:38 UTC) #51
Mark Mentovai
If the diff against the previously-uploaded patch set is clean (except for unrelated changes in ...
3 years, 7 months ago (2017-05-25 22:29:46 UTC) #53
Greg K
On 2017/05/25 22:29:46, Mark Mentovai wrote: > If the diff against the previously-uploaded patch set ...
3 years, 7 months ago (2017-05-25 22:31:25 UTC) #54
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/2891933005/120001
3 years, 6 months ago (2017-05-30 18:36:21 UTC) #59
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 20:53:30 UTC) #62
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c95caf021bebd3bc58dafc206ff9...

Powered by Google App Engine
This is Rietveld 408576698