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

Issue 937353002: Adding method to create process using LowBox token in sandbox code. (Closed)

Created:
5 years, 10 months ago by Shrikant Kelkar
Modified:
5 years, 9 months ago
CC:
chromium-reviews, creis+watch_chromium.org, grt+watch_chromium.org, nasko+codewatch_chromium.org, jam, gavinp+memory_chromium.org, darin-cc_chromium.org, wfh+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL adds a method to create process using LowBox token on Windows. LowBox will help us tackle some of the escapes from Sandbox. R=cpu,jschuh,rvargas,wfh,forshaw BUG=455496 Committed: https://crrev.com/f7540af7428f4b146136ec19b781886693f8c03f Cr-Commit-Position: refs/heads/master@{#318648}

Patch Set 1 #

Patch Set 2 : Added platform checking #

Total comments: 34

Patch Set 3 : Changes as per review comments. #

Patch Set 4 : Adjusted order of includes. #

Total comments: 2

Patch Set 5 : Fixed indent. #

Total comments: 10

Patch Set 6 : Disabled allowopenevent and denyopenevent as these tests don't seem to go through sandbox code path… #

Patch Set 7 : Addressing comments on earlier patch. #

Total comments: 3

Patch Set 8 : Modified app container tests #

Patch Set 9 : Removed sid.h/.cc #

Total comments: 6

Patch Set 10 : Separated out lowbox and startupinfoex paths for creating appcontainer. #

Patch Set 11 : Fixed comment inside target_process. #

Total comments: 40

Patch Set 12 : Review changes #

Patch Set 13 : Fixed comment casing. #

Total comments: 27

Patch Set 14 : Review changes.. #

Total comments: 4

Patch Set 15 : Review changes... #

Patch Set 16 : Sync to TOT to see if ios_dbg_simulator_ninja errors go away. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -25 lines) Patch
M sandbox/win/src/app_container_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
M sandbox/win/src/broker_services.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M sandbox/win/src/nt_internals.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M sandbox/win/src/policy_target.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M sandbox/win/src/sandbox_policy.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M sandbox/win/src/sandbox_policy_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +56 lines, -1 line 0 comments Download
M sandbox/win/src/sync_policy_test.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M sandbox/win/src/target_process.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M sandbox/win/src/target_process.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +59 lines, -13 lines 0 comments Download

Messages

Total messages: 47 (10 generated)
Shrikant Kelkar
ptal
5 years, 10 months ago (2015-02-20 01:34:45 UTC) #1
forshaw
Looking good with a few issues. I'll do some tests on it to see what ...
5 years, 10 months ago (2015-02-20 11:38:02 UTC) #2
jschuh
Do we have bugs filed to get combase and wininet removed? I'm a bit disturbed ...
5 years, 10 months ago (2015-02-20 14:31:10 UTC) #3
rvargas (doing something else)
Missing sbox tests. I'd suggest doing the integration with chrome policy on a separate CL. ...
5 years, 10 months ago (2015-02-21 01:01:22 UTC) #4
Will Harris
Looks like the existing appcontainer tests needs removing or fixing - since the code has ...
5 years, 10 months ago (2015-02-21 01:13:15 UTC) #6
rvargas (doing something else)
https://codereview.chromium.org/937353002/diff/20001/sandbox/win/src/target_process.cc File sandbox/win/src/target_process.cc (right): https://codereview.chromium.org/937353002/diff/20001/sandbox/win/src/target_process.cc#newcode211 sandbox/win/src/target_process.cc:211: if (!NT_SUCCESS(status)) { On 2015/02/21 01:13:15, Will Harris wrote: ...
5 years, 10 months ago (2015-02-21 01:26:01 UTC) #7
Shrikant Kelkar
ptal https://codereview.chromium.org/937353002/diff/20001/base/memory/shared_memory_win.cc File base/memory/shared_memory_win.cc (right): https://codereview.chromium.org/937353002/diff/20001/base/memory/shared_memory_win.cc#newcode147 base/memory/shared_memory_win.cc:147: LPCWSTR shared_memory_name = NULL; On 2015/02/21 01:01:22, rvargas ...
5 years, 10 months ago (2015-02-21 02:32:41 UTC) #8
Will Harris
do the existing app container tests need to be changed/removed? https://codereview.chromium.org/937353002/diff/60001/sandbox/win/src/target_process.cc File sandbox/win/src/target_process.cc (right): https://codereview.chromium.org/937353002/diff/60001/sandbox/win/src/target_process.cc#newcode159 ...
5 years, 10 months ago (2015-02-21 02:45:46 UTC) #9
Shrikant Kelkar
Cause of some of those appcontainer tests seem to be installing of same ID through ...
5 years, 10 months ago (2015-02-21 03:14:41 UTC) #10
rvargas (doing something else)
On 2015/02/21 02:45:46, Will Harris wrote: > do the existing app container tests need to ...
5 years, 10 months ago (2015-02-21 03:19:08 UTC) #11
Will Harris
On 2015/02/21 03:19:08, rvargas wrote: > On 2015/02/21 02:45:46, Will Harris wrote: > > do ...
5 years, 10 months ago (2015-02-21 03:20:35 UTC) #12
forshaw
> hmm app container tests (see ps4) seem to be unhappy still. Well of the ...
5 years, 10 months ago (2015-02-23 13:08:33 UTC) #13
forshaw
https://codereview.chromium.org/937353002/diff/80001/base/win/object_watcher.cc File base/win/object_watcher.cc (right): https://codereview.chromium.org/937353002/diff/80001/base/win/object_watcher.cc#newcode9 base/win/object_watcher.cc:9: #include "base/win/windows_version.h" Unused include, removing doesn't affect the build. ...
5 years, 10 months ago (2015-02-23 13:32:29 UTC) #14
Shrikant Kelkar
https://codereview.chromium.org/937353002/diff/80001/base/win/object_watcher.cc File base/win/object_watcher.cc (right): https://codereview.chromium.org/937353002/diff/80001/base/win/object_watcher.cc#newcode9 base/win/object_watcher.cc:9: #include "base/win/windows_version.h" On 2015/02/23 13:32:28, forshaw wrote: > Unused ...
5 years, 10 months ago (2015-02-23 17:54:01 UTC) #15
cpu_(ooo_6.6-7.5)
please separate the change in shared_memory_win.cc to its own CL send it to me. We ...
5 years, 10 months ago (2015-02-23 21:15:55 UTC) #16
cpu_(ooo_6.6-7.5)
also separate the 3 /content/ files into another CL basically lets get appcontainer with the ...
5 years, 10 months ago (2015-02-23 21:18:23 UTC) #17
rvargas (doing something else)
https://codereview.chromium.org/937353002/diff/20001/sandbox/win/src/broker_services.cc File sandbox/win/src/broker_services.cc (right): https://codereview.chromium.org/937353002/diff/20001/sandbox/win/src/broker_services.cc#newcode411 sandbox/win/src/broker_services.cc:411: if (base::win::GetVersion() >= base::win::VERSION_VISTA) { On 2015/02/21 02:32:40, Shrikant ...
5 years, 10 months ago (2015-02-24 01:01:50 UTC) #18
Shrikant Kelkar
ptal. I have modified App_container_tests for deny only. Here is what I found so far, ...
5 years, 9 months ago (2015-02-27 02:24:17 UTC) #19
rvargas (doing something else)
https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/app_container.h File sandbox/win/src/app_container.h (left): https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/app_container.h#oldcode40 sandbox/win/src/app_container.h:40: ResultCode ShareForStartup( I know I asked you to remove ...
5 years, 9 months ago (2015-02-27 20:16:34 UTC) #20
Shrikant Kelkar
ptal. Modified most of the code again to be in sync with what we discussed. ...
5 years, 9 months ago (2015-02-28 00:04:00 UTC) #21
rvargas (doing something else)
Almost there. https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/policy_broker.cc File sandbox/win/src/policy_broker.cc (right): https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/policy_broker.cc#newcode90 sandbox/win/src/policy_broker.cc:90: // Interceptions provided by process_thread_policy, without actual ...
5 years, 9 months ago (2015-02-28 01:10:07 UTC) #22
Shrikant Kelkar
ptal. https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/policy_broker.cc File sandbox/win/src/policy_broker.cc (right): https://codereview.chromium.org/937353002/diff/160001/sandbox/win/src/policy_broker.cc#newcode90 sandbox/win/src/policy_broker.cc:90: // Interceptions provided by process_thread_policy, without actual policy. ...
5 years, 9 months ago (2015-02-28 01:55:43 UTC) #23
cpu_(ooo_6.6-7.5)
lgtm with nits https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/policy_target.cc File sandbox/win/src/policy_target.cc (left): https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/policy_target.cc#oldcode91 sandbox/win/src/policy_target.cc:91: can you remind me of why ...
5 years, 9 months ago (2015-02-28 02:13:53 UTC) #24
cpu_(ooo_6.6-7.5)
one more thing please update the CL descrioption, is no longer about appcontainers. Also have ...
5 years, 9 months ago (2015-02-28 02:15:06 UTC) #25
rvargas (doing something else)
https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc File sandbox/win/src/sandbox_policy_base.cc (right): https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc#newcode341 sandbox/win/src/sandbox_policy_base.cc:341: return SBOX_ERROR_UNEXPECTED_CALL; I'm not sure what is the right ...
5 years, 9 months ago (2015-02-28 02:23:08 UTC) #26
Shrikant Kelkar
ptal. https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/policy_target.cc File sandbox/win/src/policy_target.cc (left): https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/policy_target.cc#oldcode91 sandbox/win/src/policy_target.cc:91: On 2015/02/28 02:13:53, cpu wrote: > can you ...
5 years, 9 months ago (2015-02-28 02:33:47 UTC) #27
rvargas (doing something else)
lgtm https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc File sandbox/win/src/sandbox_policy_base.cc (right): https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc#newcode526 sandbox/win/src/sandbox_policy_base.cc:526: On 2015/02/28 02:33:47, Shrikant Kelkar wrote: > On ...
5 years, 9 months ago (2015-02-28 02:48:05 UTC) #28
Shrikant Kelkar
https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc File sandbox/win/src/sandbox_policy_base.cc (right): https://codereview.chromium.org/937353002/diff/240001/sandbox/win/src/sandbox_policy_base.cc#newcode526 sandbox/win/src/sandbox_policy_base.cc:526: On 2015/02/28 02:48:05, rvargas wrote: > On 2015/02/28 02:33:47, ...
5 years, 9 months ago (2015-03-01 00:31:43 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937353002/280001
5 years, 9 months ago (2015-03-01 00:32:06 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/922)
5 years, 9 months ago (2015-03-01 00:36:02 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937353002/280001
5 years, 9 months ago (2015-03-01 00:59:35 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/928)
5 years, 9 months ago (2015-03-01 01:04:08 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937353002/280001
5 years, 9 months ago (2015-03-01 04:27:26 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/940)
5 years, 9 months ago (2015-03-01 04:32:05 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/937353002/300001
5 years, 9 months ago (2015-03-02 03:33:36 UTC) #45
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 9 months ago (2015-03-02 04:23:11 UTC) #46
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 04:23:37 UTC) #47
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/f7540af7428f4b146136ec19b781886693f8c03f
Cr-Commit-Position: refs/heads/master@{#318648}

Powered by Google App Engine
This is Rietveld 408576698