mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-08 13:42:06 +00:00
We should be checking both mok and the system's SB settings
When we call hook_system_services(), we're currently only checking mok's setting. We should use secure_mode() instead so it'll check both. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
56fb385a17
commit
83b3a7cf6d
2
shim.c
2
shim.c
@ -1718,7 +1718,7 @@ EFI_STATUS efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *passed_systab)
|
|||||||
/*
|
/*
|
||||||
* Tell the user that we're in insecure mode if necessary
|
* Tell the user that we're in insecure mode if necessary
|
||||||
*/
|
*/
|
||||||
if (insecure_mode) {
|
if (!secure_mode()) {
|
||||||
Print(L"Booting in insecure mode\n");
|
Print(L"Booting in insecure mode\n");
|
||||||
uefi_call_wrapper(BS->Stall, 1, 2000000);
|
uefi_call_wrapper(BS->Stall, 1, 2000000);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user