1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "sandbox/features.h"
8 #include "base/win/windows_version.h"
11 namespace sandbox::features {
13 bool IsAppContainerSandboxSupported() {
14 // Some APIs used for LPAC are unsupported below Windows 10 RS2 (1703 build
15 // 15063). In addition, it is not possible to apply process mitigations to an
16 // app container process until RS5. Place a check here in a central place.
17 static const bool supported =
18 base::win::GetVersion() >= base::win::Version::WIN10_RS5;
22 } // namespace sandbox::features