]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.c
Update function comments to remove confused description on PerformanceLib EndPerforma...
[mirror_edk2.git] / SecurityPkg / Library / PlatformSecureLibNull / PlatformSecureLibNull.c
CommitLineData
0c18794e 1/** @file\r
ecc722ad 2 Provides a secure platform-specific method to detect physically present user.\r
0c18794e 3\r
ecc722ad 4Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r
0c18794e 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
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15/**\r
16\r
ecc722ad 17 This function provides a platform-specific method to detect whether the platform\r
18 is operating by a physically present user. \r
19\r
20 Programmatic changing of platform security policy (such as disable Secure Boot,\r
21 or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during\r
22 Boot Services or after exiting EFI Boot Services. Only a physically present user\r
23 is allowed to perform these operations.\r
24\r
0c18794e 25 NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r
26 not available when this function is called in AuthenticateVariable driver.\r
ecc722ad 27 \r
28 @retval TRUE The platform is operated by a physically present user.\r
29 @retval FALSE The platform is NOT operated by a physically present user.\r
0c18794e 30\r
31**/\r
32BOOLEAN\r
33EFIAPI\r
ecc722ad 34UserPhysicalPresent (\r
0c18794e 35 VOID\r
36 )\r
37{\r
3c48e853 38 return TRUE;\r
0c18794e 39}\r