]>
Commit | Line | Data |
---|---|---|
0c18794e | 1 | /** @file\r |
a7450323 | 2 | NULL PlatformSecureLib instance does NOT really detect whether a physical present \r |
3 | user exists but return TRUE directly. This instance can be used to verify security\r | |
4 | related features during platform enabling and development. It should be replaced\r | |
5 | by a platform-specific method(e.g. Button pressed) in a real platform for product.\r | |
0c18794e | 6 | \r |
ecc722ad | 7 | Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r |
0c18794e | 8 | This program and the accompanying materials \r |
9 | are licensed and made available under the terms and conditions of the BSD License \r | |
10 | which accompanies this distribution. The full text of the license may be found at \r | |
11 | http://opensource.org/licenses/bsd-license.php\r | |
12 | \r | |
13 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
14 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
15 | \r | |
16 | **/\r | |
17 | \r | |
18 | /**\r | |
19 | \r | |
ecc722ad | 20 | This function provides a platform-specific method to detect whether the platform\r |
21 | is operating by a physically present user. \r | |
22 | \r | |
23 | Programmatic changing of platform security policy (such as disable Secure Boot,\r | |
24 | or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during\r | |
25 | Boot Services or after exiting EFI Boot Services. Only a physically present user\r | |
26 | is allowed to perform these operations.\r | |
27 | \r | |
0c18794e | 28 | NOTE THAT: This function cannot depend on any EFI Variable Service since they are\r |
29 | not available when this function is called in AuthenticateVariable driver.\r | |
ecc722ad | 30 | \r |
31 | @retval TRUE The platform is operated by a physically present user.\r | |
32 | @retval FALSE The platform is NOT operated by a physically present user.\r | |
0c18794e | 33 | \r |
34 | **/\r | |
35 | BOOLEAN\r | |
36 | EFIAPI\r | |
ecc722ad | 37 | UserPhysicalPresent (\r |
0c18794e | 38 | VOID\r |
39 | )\r | |
40 | {\r | |
3c48e853 | 41 | return TRUE;\r |
0c18794e | 42 | }\r |