blob: 11185afb53825da7e839e723c3ee60ae97ecc05a [file] [log] [blame]
Emily Andrews7cd71e02022-02-23 22:30:321// Copyright 2021 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "sandbox/features.h"
6
7namespace sandbox::features {
8#if BUILDFLAG(IS_WIN)
9bool IsAppContainerSandboxSupported() {
Will Harris3e11fe72022-04-22 22:29:4110 // Some APIs used for LPAC are unsupported below Windows 10 RS2 (1703 build
11 // 15063). In addition, it is not possible to apply process mitigations to an
12 // app container process until RS5. Place a check here in a central place.
Emily Andrews7cd71e02022-02-23 22:30:3213 static const bool supported =
Will Harris3e11fe72022-04-22 22:29:4114 base::win::GetVersion() >= base::win::Version::WIN10_RS5;
Emily Andrews7cd71e02022-02-23 22:30:3215 return supported;
16}
17#endif
Will Harris3e11fe72022-04-22 22:29:4118} // namespace sandbox::features