]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Library/PlatformSecureLib/PlatformSecureLib.c
UefiCpuPkg: Remove double \r
[mirror_edk2.git] / Nt32Pkg / Library / PlatformSecureLib / PlatformSecureLib.c
1 /** @file
2 Provides a platform-specific method to enable Secure Boot Custom Mode setup.
3
4 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8 #include <Library/PcdLib.h>
9
10
11 /**
12
13 This function provides a platform-specific method to detect whether the platform
14 is operating by a physically present user.
15
16 Programmatic changing of platform security policy (such as disable Secure Boot,
17 or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during
18 Boot Services or after exiting EFI Boot Services. Only a physically present user
19 is allowed to perform these operations.
20
21 NOTE THAT: This function cannot depend on any EFI Variable Service since they are
22 not available when this function is called in AuthenticateVariable driver.
23
24 @retval TRUE The platform is operated by a physically present user.
25 @retval FALSE The platform is NOT operated by a physically present user.
26
27 **/
28 BOOLEAN
29 EFIAPI
30 UserPhysicalPresent (
31 VOID
32 )
33 {
34 return TRUE;
35 }