summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_variable.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-08-25 20:13:24 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-09-04 13:03:57 +0300
commit9ef82e29478c76f17b536f8f289fd0406067ab01 (patch)
tree50276c339c16fc0dddce721de81515e980c4a89b /lib/efi_loader/efi_variable.c
parentf3a343d7339acf1d531e438e15fef3c7975cfdcf (diff)
downloadu-boot-9ef82e29478c76f17b536f8f289fd0406067ab01.tar.xz
efi_loader: don't load signature database from file
The UEFI specification requires that the signature database may only be stored in tamper-resistant storage. So these variable may not be read from an unsigned file. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
-rw-r--r--lib/efi_loader/efi_variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c
index ba0874e9e7..a7d305ffbc 100644
--- a/lib/efi_loader/efi_variable.c
+++ b/lib/efi_loader/efi_variable.c
@@ -426,7 +426,7 @@ efi_status_t efi_init_variables(void)
if (IS_ENABLED(CONFIG_EFI_VARIABLES_PRESEED)) {
ret = efi_var_restore((struct efi_var_file *)
- __efi_var_file_begin);
+ __efi_var_file_begin, true);
if (ret != EFI_SUCCESS)
log_err("Invalid EFI variable seed\n");
}