diff mbox series

efi: Add new variable attributes

Message ID tencent_D07D67AD5F6EA840BEC68C82226A18B40A0A@qq.com
State New
Headers show
Series efi: Add new variable attributes | expand

Commit Message

Rong Tao Sept. 12, 2023, 9:44 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/include/linux/efi.h b/include/linux/efi.h
index 80b21d1c6eaf..f15835873b31 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -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