]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Include/Library/PlatformSecureLib.h
ArmPkg/ArmMmuLib ARM: fix thinko in second level page table handling
[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
LG
4Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
0c18794e 8http://opensource.org/licenses/bsd-license.php\r
9\r
b3548d32 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
0c18794e 11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __PLATFORM_SECURE_LIB_H__\r
16#define __PLATFORM_SECURE_LIB_H__\r
17\r
18\r
19/**\r
20\r
ecc722ad 21 This function provides a platform-specific method to detect whether the platform\r
b3548d32 22 is operating by a physically present user.\r
ecc722ad 23\r
24 Programmatic changing of platform security policy (such as disable Secure Boot,\r
25 or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during\r
26 Boot Services or after exiting EFI Boot Services. Only a physically present user\r
27 is allowed to perform these operations.\r
0c18794e 28\r
29 NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r
30 not available when this function is called in AuthenticateVariable driver.\r
b3548d32 31\r
ecc722ad 32 @retval TRUE The platform is operated by a physically present user.\r
33 @retval FALSE The platform is NOT operated by a physically present user.\r
0c18794e 34\r
35**/\r
36BOOLEAN\r
37EFIAPI\r
ecc722ad 38UserPhysicalPresent (\r
0c18794e 39 VOID\r
40 );\r
41\r
ecc722ad 42#endif\r