2012-03-09 18:38:06 +01:00
|
|
|
/** @file
|
|
|
|
Provides a platform-specific method to enable Secure Boot Custom Mode setup.
|
|
|
|
|
|
|
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
#include <Library/PcdLib.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
2012-04-04 19:35:06 +02:00
|
|
|
This function provides a platform-specific method to detect whether the platform
|
|
|
|
is operating by a physically present user.
|
2012-03-09 18:38:06 +01:00
|
|
|
|
2012-04-04 19:35:06 +02:00
|
|
|
Programmatic changing of platform security policy (such as disable Secure Boot,
|
|
|
|
or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during
|
|
|
|
Boot Services or after exiting EFI Boot Services. Only a physically present user
|
|
|
|
is allowed to perform these operations.
|
2012-03-09 18:38:06 +01:00
|
|
|
|
|
|
|
NOTE THAT: This function cannot depend on any EFI Variable Service since they are
|
|
|
|
not available when this function is called in AuthenticateVariable driver.
|
2012-04-04 19:35:06 +02:00
|
|
|
|
|
|
|
@retval TRUE The platform is operated by a physically present user.
|
|
|
|
@retval FALSE The platform is NOT operated by a physically present user.
|
2012-03-09 18:38:06 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
BOOLEAN
|
|
|
|
EFIAPI
|
|
|
|
UserPhysicalPresent (
|
|
|
|
VOID
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|