]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.c
2 Provides a platform-specific method to enable Secure Boot Custom Mode setup.
4 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
8 #include <Library/PcdLib.h>
12 This function provides a platform-specific method to detect whether the platform
13 is operating by a physically present user.
15 Programmatic changing of platform security policy (such as disable Secure Boot,
16 or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during
17 Boot Services or after exiting EFI Boot Services. Only a physically present user
18 is allowed to perform these operations.
20 NOTE THAT: This function cannot depend on any EFI Variable Service since they are
21 not available when this function is called in AuthenticateVariable driver.
23 @retval TRUE The platform is operated by a physically present user.
24 @retval FALSE The platform is NOT operated by a physically present user.