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