efi: Add new variable attributes
Commit Message
From: Rong Tao <rongtao@cestc.cn>
More recent versions of the UEFI spec have added a new attribute for
variables [0]. Add it.
[0] https://uefi.org/specs/UEFI/2.10/08_Services_Runtime_Services.html#getvariable
Signed-off-by: Rong Tao <rongtao@cestc.cn>
---
include/linux/efi.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -928,6 +928,7 @@ extern int efi_status_to_err(efi_status_t status);
#define EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS 0x0000000000000010
#define EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS 0x0000000000000020
#define EFI_VARIABLE_APPEND_WRITE 0x0000000000000040
+#define EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS 0x0000000000000080
#define EFI_VARIABLE_MASK (EFI_VARIABLE_NON_VOLATILE | \
EFI_VARIABLE_BOOTSERVICE_ACCESS | \
@@ -935,7 +936,8 @@ extern int efi_status_to_err(efi_status_t status);
EFI_VARIABLE_HARDWARE_ERROR_RECORD | \
EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS | \
EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS | \
- EFI_VARIABLE_APPEND_WRITE)
+ EFI_VARIABLE_APPEND_WRITE | \
+ EFI_VARIABLE_ENHANCED_AUTHENTICATED_ACCESS)
/*
* Length of a GUID string (strlen("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"))
* not including trailing NUL