Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Delete MokList properly

A cut and paste error meant that attempts to delete MokList were instead
appending a zero-length addition.
  • Loading branch information...
commit 35e185edd9ef5614b61fbf2aaeb829594e362af7 1 parent 4e3721a
Matthew Garrett authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  MokManager.c
View
3  MokManager.c
@@ -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",
&shim_lock_guid,
EFI_VARIABLE_NON_VOLATILE
- | EFI_VARIABLE_BOOTSERVICE_ACCESS
- | EFI_VARIABLE_APPEND_WRITE,
+ | EFI_VARIABLE_BOOTSERVICE_ACCESS,
0, NULL);
} else {
/* Write new MOK */
Please sign in to comment.
Something went wrong with that request. Please try again.