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