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