Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ Variables you could set to customize the build:
- ENABLE_CODESIGN_EKU
This changes the certificate validation logic to require Extended Key
Usage 1.3.6.1.5.5.7.3.3 ("Code Signing").
- IGNORE_MM_MISSING
By default, Shim will stop the boot if there is a MoK request but
MokManager is missing. This allows ignoring the error and continuing to
boot.

Vendor SBAT data:
It will sometimes be requested by reviewers that a build includes extra
Expand Down
4 changes: 4 additions & 0 deletions Make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ ifneq ($(origin DISABLE_REMOVABLE_LOAD_OPTIONS), undefined)
DEFINES += -DDISABLE_REMOVABLE_LOAD_OPTIONS
endif

ifneq ($(origin IGNORE_MM_MISSING), undefined)
DEFINES += -DIGNORE_MM_MISSING
endif

LIB_GCC = $(shell $(CC) $(ARCH_CFLAGS) -print-libgcc-file-name)
EFI_LIBS = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC)
FORMAT ?= --target efi-app-$(ARCH)
Expand Down
5 changes: 5 additions & 0 deletions mok.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ static EFI_STATUS check_mok_request(EFI_HANDLE image_handle)
efi_status = start_image(image_handle, MOK_MANAGER);

if (EFI_ERROR(efi_status)) {
#ifdef IGNORE_MM_MISSING
perror(L"Failed to start MokManager: %r\n", efi_status);
return efi_status == EFI_NOT_FOUND ? EFI_SUCCESS : efi_status;
#else
/*
* We don't do this in the unit tests because we
* don't have simulation for console_countdown()
Expand Down Expand Up @@ -130,6 +134,7 @@ static EFI_STATUS check_mok_request(EFI_HANDLE image_handle)
#endif
perror(L"Failed to start MokManager: %r\n", efi_status);
return efi_status;
#endif
}
}

Expand Down