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