[PATCH 0/3] efi_loader: fixes for EFI variables

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Wed Apr 3 17:33:32 CEST 2024


GetVariable() and SetVariable() use an uint32_t value for attributes.
The UEFI specification defines the related constants as 32bit.

Add the missing EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS constant.

We don't yet support EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS for file
based variables, but we should pass it to TEE based variable stores.

Heinrich Schuchardt (3):
  efi_loader: all variable attributes are 32bit
  efi_loader: EFI_VARIABLE_READ_ONLY should be 32bit
  efi_loader: handle EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS

 include/efi.h                   | 18 ++++++++++--------
 include/efi_variable.h          |  2 +-
 lib/efi_loader/efi_var_common.c |  2 +-
 lib/efi_loader/efi_variable.c   | 16 ++++++++++------
 4 files changed, 22 insertions(+), 16 deletions(-)

-- 
2.43.0



More information about the U-Boot mailing list