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

Unified Diff: sandbox/win/tests/common/controller.h

Issue 1626623003: [Win10 sandbox mitigations] Four new Win10 mitigations added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes, part 5. "Fix the nit." Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/security_level.h ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/common/controller.h
diff --git a/sandbox/win/tests/common/controller.h b/sandbox/win/tests/common/controller.h
index a6498ed12e2a796d440ba1f5252d0b246094c67b..96198080ea60ed783b5265db9d702a0a3de3cb01 100644
--- a/sandbox/win/tests/common/controller.h
+++ b/sandbox/win/tests/common/controller.h
@@ -105,6 +105,10 @@ class TestRunner {
// Sets TestRunner to return without waiting for the process to exit.
void SetUnsandboxed(bool is_no_sandbox) { no_sandbox_ = is_no_sandbox; }
+ // Sets whether TestRunner should disable CSRSS or not (default true).
+ // Any test that needs to spawn a child process needs to set this to false.
+ void SetDisableCsrss(bool disable_csrss) { disable_csrss_ = disable_csrss; }
+
// Sets the desired state for the test to run.
void SetTestState(SboxTestsState desired_state);
@@ -127,7 +131,8 @@ class TestRunner {
private:
// Initializes the data in the object. Sets is_init_ to tree if the
// function succeeds. This is meant to be called from the constructor.
- void Init(JobLevel job_level, TokenLevel startup_token,
+ void Init(JobLevel job_level,
+ TokenLevel startup_token,
TokenLevel main_token);
// The actual runner.
@@ -140,6 +145,7 @@ class TestRunner {
bool is_init_;
bool is_async_;
bool no_sandbox_;
+ bool disable_csrss_;
bool kill_on_destruction_;
base::win::ScopedHandle target_process_;
DWORD target_process_id_;
« no previous file with comments | « sandbox/win/src/security_level.h ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698