[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tencent_D07D67AD5F6EA840BEC68C82226A18B40A0A@qq.com>
Date: Tue, 12 Sep 2023 17:44:20 +0800
From: Rong Tao <rtoax@...mail.com>
To: ardb@...nel.org, rongtao@...tc.cn, rtoax@...mail.com
Cc: linux-efi@...r.kernel.org (open list:EXTENSIBLE FIRMWARE INTERFACE
(EFI)), linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] efi: Add new variable attributes
From: Rong Tao <rongtao@...tc.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@...tc.cn>
---
include/linux/efi.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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
--
2.41.0
Powered by blists - more mailing lists