PlatformSecureLib.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /** @file
  2. Provides a secure platform-specific method to detect physically present user.
  3. Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __PLATFORM_SECURE_LIB_H__
  7. #define __PLATFORM_SECURE_LIB_H__
  8. /**
  9. This function provides a platform-specific method to detect whether the platform
  10. is operating by a physically present user.
  11. Programmatic changing of platform security policy (such as disable Secure Boot,
  12. or switch between Standard/Custom Secure Boot mode) MUST NOT be possible during
  13. Boot Services or after exiting EFI Boot Services. Only a physically present user
  14. is allowed to perform these operations.
  15. NOTE THAT: This function cannot depend on any EFI Variable Service since they are
  16. not available when this function is called in AuthenticateVariable driver.
  17. @retval TRUE The platform is operated by a physically present user.
  18. @retval FALSE The platform is NOT operated by a physically present user.
  19. **/
  20. BOOLEAN
  21. EFIAPI
  22. UserPhysicalPresent (
  23. VOID
  24. );
  25. #endif