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 <i@shantur.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on AML-S905D3-CC Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
fd2d986876
commit
38ea3bfc65
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user