mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-14 14:07:11 +00:00
Delete MokList properly
A cut and paste error meant that attempts to delete MokList were instead appending a zero-length addition.
This commit is contained in:
parent
4e3721a0b5
commit
35e185edd9
@ -615,8 +615,7 @@ static EFI_STATUS store_keys (void *MokNew, UINTN MokNewSize, int authenticate)
|
|||||||
efi_status = uefi_call_wrapper(RT->SetVariable, 5, L"MokList",
|
efi_status = uefi_call_wrapper(RT->SetVariable, 5, L"MokList",
|
||||||
&shim_lock_guid,
|
&shim_lock_guid,
|
||||||
EFI_VARIABLE_NON_VOLATILE
|
EFI_VARIABLE_NON_VOLATILE
|
||||||
| EFI_VARIABLE_BOOTSERVICE_ACCESS
|
| EFI_VARIABLE_BOOTSERVICE_ACCESS,
|
||||||
| EFI_VARIABLE_APPEND_WRITE,
|
|
||||||
0, NULL);
|
0, NULL);
|
||||||
} else {
|
} else {
|
||||||
/* Write new MOK */
|
/* Write new MOK */
|
||||||
|
Loading…
Reference in New Issue
Block a user