]>
Commit | Line | Data |
---|---|---|
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 | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | #include <Library/PcdLib.h>\r | |
15 | \r | |
16 | /**\r | |
17 | \r | |
7a616e5b | 18 | This function provides a platform-specific method to detect whether the platform\r |
19 | is operating by a physically present user. \r | |
6a52c7a1 | 20 | \r |
7a616e5b | 21 | Programmatic changing of platform security policy (such as disable Secure Boot,\r |
22 | or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during\r | |
23 | Boot Services or after exiting EFI Boot Services. Only a physically present user\r | |
24 | is allowed to perform these operations.\r | |
6a52c7a1 | 25 | \r |
26 | NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r | |
27 | not available when this function is called in AuthenticateVariable driver.\r | |
7a616e5b | 28 | \r |
29 | @retval TRUE The platform is operated by a physically present user.\r | |
30 | @retval FALSE The platform is NOT operated by a physically present user.\r | |
6a52c7a1 | 31 | \r |
32 | **/\r | |
33 | BOOLEAN\r | |
34 | EFIAPI\r | |
35 | UserPhysicalPresent (\r | |
36 | VOID\r | |
37 | )\r | |
38 | {\r | |
39 | return TRUE;\r | |
40 | }\r |