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