2017-12-07 22:44:24 +01:00
|
|
|
diff --git services/service_manager/sandbox/win/sandbox_win.cc services/service_manager/sandbox/win/sandbox_win.cc
|
2020-02-10 18:10:17 +01:00
|
|
|
index 0d4e7f5d5c29..9f27c2b06c4e 100644
|
2017-12-07 22:44:24 +01:00
|
|
|
--- services/service_manager/sandbox/win/sandbox_win.cc
|
|
|
|
+++ services/service_manager/sandbox/win/sandbox_win.cc
|
2020-02-10 18:10:17 +01:00
|
|
|
@@ -918,8 +918,11 @@ sandbox::ResultCode SandboxWin::StartSandboxedProcess(
|
2019-07-16 19:59:21 +02:00
|
|
|
}
|
|
|
|
// TODO(wfh): Relax strict handle checks for network process until root cause
|
|
|
|
// for this crash can be resolved. See https://crbug.com/939590.
|
|
|
|
- if (sandbox_type != SANDBOX_TYPE_NETWORK)
|
|
|
|
+ if (!launcher_process_command_line.HasSwitch("win-rt-app") &&
|
|
|
|
+ sandbox_type != SANDBOX_TYPE_NETWORK) {
|
2017-09-29 11:17:31 +02:00
|
|
|
+ // Don't enable this mitigation in WinRT apps. See issue #2274.
|
2019-07-16 19:59:21 +02:00
|
|
|
mitigations |= sandbox::MITIGATION_STRICT_HANDLE_CHECKS;
|
2017-09-29 11:17:31 +02:00
|
|
|
+ }
|
2019-07-16 19:59:21 +02:00
|
|
|
|
|
|
|
result = policy->SetDelayedProcessMitigations(mitigations);
|
|
|
|
if (result != sandbox::SBOX_ALL_OK)
|