summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShantur Rathore <[email protected]>2026-02-11 16:56:20 +0100
committerHeinrich Schuchardt <[email protected]>2026-02-15 09:14:31 +0100
commit38ea3bfc6506174c3ae219b33171db2c2098afd1 (patch)
treece3a0a12a8efdaf5ec35331753f3f7cba7e7e642 /include
parentfd2d98687614c4ce8b649021a5df30bc9688bda3 (diff)
efi_var_file: refactor to move buffer functions
Currently efi_var_file.c has functions to store/read EFI variables to/from memory buffer. These functions can be used with other EFI variable stores so move them out to efi_var_common.c Signed-off-by: Shantur Rathore <[email protected]> Signed-off-by: Michal Simek <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on AML-S905D3-CC Reviewed-by: Ilias Apalodimas <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/efi_variable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi_variable.h b/include/efi_variable.h
index 4065cf45eca..ee68fa4a885 100644
--- a/include/efi_variable.h
+++ b/include/efi_variable.h
@@ -161,6 +161,11 @@ efi_status_t efi_var_to_file(void);
efi_status_t __maybe_unused efi_var_collect(struct efi_var_file **bufp, loff_t *lenp,
u32 check_attr_mask);
+/* GUID used by Shim to store the MOK database */
+#define SHIM_LOCK_GUID \
+ EFI_GUID(0x605dab50, 0xe046, 0x4300, \
+ 0xab, 0xb6, 0x3d, 0xd8, 0x10, 0xdd, 0x8b, 0x23)
+
/**
* efi_var_restore() - restore EFI variables from buffer
*