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
|
2018-10-24 22:37:39 +02:00
|
|
|
index 95cffa1b4eec..691ca2f622f8 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-10-24 22:37:39 +02:00
|
|
|
@@ -912,8 +912,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 ||
|