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
|
2019-01-17 10:56:52 +01:00
|
|
|
index f4c3eeda2285..7fbd7921be0b 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
|
2018-12-26 16:12:11 +01:00
|
|
|
@@ -917,8 +917,11 @@ sandbox::ResultCode SandboxWin::StartSandboxedProcess(
|
2017-09-29 11:17:31 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// Post-startup mitigations.
|
|
|
|
- mitigations = sandbox::MITIGATION_STRICT_HANDLE_CHECKS |
|
|
|
|
- sandbox::MITIGATION_DLL_SEARCH_ORDER;
|
|
|
|
+ mitigations = sandbox::MITIGATION_DLL_SEARCH_ORDER;
|
2017-12-07 22:44:24 +01:00
|
|
|
+ if (!launcher_process_command_line.HasSwitch("win-rt-app")) {
|
2017-09-29 11:17:31 +02:00
|
|
|
+ // Don't enable this mitigation in WinRT apps. See issue #2274.
|
|
|
|
+ mitigations |= sandbox::MITIGATION_STRICT_HANDLE_CHECKS;
|
|
|
|
+ }
|
2018-06-01 21:16:26 +02:00
|
|
|
if (!cmd_line->HasSwitch(switches::kAllowThirdPartyModules))
|
|
|
|
mitigations |= sandbox::MITIGATION_FORCE_MS_SIGNED_BINS;
|
2018-07-24 00:32:02 +02:00
|
|
|
if (sandbox_type == SANDBOX_TYPE_NETWORK ||
|