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

Issue 84063004: Restructure sandbox code to reduce dependencies pulled in by intercept code. (Closed)

Created:
7 years, 1 month ago by robertshield
Modified:
7 years ago
CC:
chromium-reviews
Visibility:
Public.

Description

Restructure sandbox code to reduce dependencies pulled in by intercept code. BUG=322710 TEST=NONE Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238538

Patch Set 1 #

Patch Set 2 : Remove sandbox re-libification #

Total comments: 18

Patch Set 3 : Ricardo's comments, clean up refactoring. #

Patch Set 4 : Pre-review cleanup. #

Total comments: 22

Patch Set 5 : Ricardo's feedback. Use ntdll!memcpy to unsplit sandbox_nt_util. #

Patch Set 6 : Pre-review cleanup. #

Patch Set 7 : Pre-review cleanup. #

Patch Set 8 : Grr.. rietveld upload! #

Total comments: 10

Patch Set 9 : cpu@ comments #

Total comments: 8

Patch Set 10 : Ricardo's feedback. #

Patch Set 11 : Fix presubmit warning. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -36 lines) Patch
M sandbox/win/sandbox_win.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/src/nt_internals.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M sandbox/win/src/policy_broker.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/src/sandbox.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A sandbox/win/src/sandbox_globals.cc View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_nt_types.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/win/src/sandbox_nt_util.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M sandbox/win/src/sandbox_nt_util.cc View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download
M sandbox/win/src/sandbox_utils.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M sandbox/win/src/sandbox_utils.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M sandbox/win/src/service_resolver.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/win/src/service_resolver.cc View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -4 lines 0 comments Download
M sandbox/win/src/service_resolver_64.cc View 1 2 3 4 5 6 3 chunks +8 lines, -8 lines 0 comments Download
M sandbox/win/src/service_resolver_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +40 lines, -1 line 0 comments Download
M sandbox/win/src/win_utils.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
robertshield
7 years ago (2013-11-26 20:11:10 UTC) #1
rvargas (doing something else)
Maybe the whole issue is logging? https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/filesystem_interception.cc File sandbox/win/src/filesystem_interception.cc (right): https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/filesystem_interception.cc#newcode13 sandbox/win/src/filesystem_interception.cc:13: #include "sandbox/win/src/sandbox_utils.h" Interception ...
7 years ago (2013-11-26 20:42:11 UTC) #2
robertshield
Thanks Ricardo, reworked things into the nt-only vs not-nt-only division. The logging hint was really ...
7 years ago (2013-11-27 20:28:00 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/sandbox_nt_util.cc#oldcode211 sandbox/win/src/sandbox_nt_util.cc:211: if (SandboxFactory::GetTargetServices()->GetState()->InitCalled()) { On 2013/11/27 20:28:01, robertshield wrote: > ...
7 years ago (2013-11-27 23:53:50 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/84063004/diff/80001/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://codereview.chromium.org/84063004/diff/80001/sandbox/win/src/sandbox_nt_util.cc#oldcode208 sandbox/win/src/sandbox_nt_util.cc:208: NTSTATUS CopyData(void* destination, const void* source, size_t bytes) { ...
7 years ago (2013-11-27 23:58:52 UTC) #5
robertshield
https://codereview.chromium.org/84063004/diff/80001/sandbox/win/sandbox_win.gypi File sandbox/win/sandbox_win.gypi (right): https://codereview.chromium.org/84063004/diff/80001/sandbox/win/sandbox_win.gypi#newcode96 sandbox/win/sandbox_win.gypi:96: 'src/sandbox_globals.cc', On 2013/11/27 23:53:51, rvargas wrote: > missing files ...
7 years ago (2013-11-28 01:39:19 UTC) #6
robertshield
Thanks, PTAL! https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://codereview.chromium.org/84063004/diff/20001/sandbox/win/src/sandbox_nt_util.cc#oldcode211 sandbox/win/src/sandbox_nt_util.cc:211: if (SandboxFactory::GetTargetServices()->GetState()->InitCalled()) { On 2013/11/27 23:53:50, rvargas ...
7 years ago (2013-11-29 01:21:25 UTC) #7
cpu_(ooo_6.6-7.5)
looking good. https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/sandbox_nt_util.cc#oldcode216 sandbox/win/src/sandbox_nt_util.cc:216: for (size_t i = 0; i < ...
7 years ago (2013-11-29 18:30:07 UTC) #8
robertshield
https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/sandbox_nt_util.cc File sandbox/win/src/sandbox_nt_util.cc (left): https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/sandbox_nt_util.cc#oldcode216 sandbox/win/src/sandbox_nt_util.cc:216: for (size_t i = 0; i < bytes; i++) ...
7 years ago (2013-11-29 19:29:08 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm on my side https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/service_resolver.cc File sandbox/win/src/service_resolver.cc (right): https://codereview.chromium.org/84063004/diff/230001/sandbox/win/src/service_resolver.cc#newcode42 sandbox/win/src/service_resolver.cc:42: ntdll_base_ = ::GetModuleHandle(L"ntdll.dll"); On 2013/11/29 ...
7 years ago (2013-12-01 00:18:44 UTC) #10
rvargas (doing something else)
LGTM with minor nits. https://codereview.chromium.org/84063004/diff/270001/sandbox/win/src/nt_internals.h File sandbox/win/src/nt_internals.h (right): https://codereview.chromium.org/84063004/diff/270001/sandbox/win/src/nt_internals.h#newcode605 sandbox/win/src/nt_internals.h:605: IN void *dest, nit: * ...
7 years ago (2013-12-02 20:05:33 UTC) #11
robertshield
Thanks! https://codereview.chromium.org/84063004/diff/270001/sandbox/win/src/nt_internals.h File sandbox/win/src/nt_internals.h (right): https://codereview.chromium.org/84063004/diff/270001/sandbox/win/src/nt_internals.h#newcode605 sandbox/win/src/nt_internals.h:605: IN void *dest, On 2013/12/02 20:05:33, rvargas wrote: ...
7 years ago (2013-12-03 18:53:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/84063004/310001
7 years ago (2013-12-03 21:24:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robertshield@chromium.org/84063004/310001
7 years ago (2013-12-03 23:39:42 UTC) #14
commit-bot: I haz the power
7 years ago (2013-12-04 03:12:22 UTC) #15
Message was sent while issue was closed.
Change committed as 238538

Powered by Google App Engine
This is Rietveld 408576698