]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Attempt to detect EFI images that fail Secure Boot verification
authorMichael Brown <mcb30@ipxe.org>
Wed, 17 May 2023 13:36:25 +0000 (14:36 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 17 May 2023 13:40:50 +0000 (14:40 +0100)
commit79d85e29aa09c47f1d5a2be9eddd10e61fb22035
tree1ee9b6e740ac7d1d114fb7d66fdddd30d3ae96ee
parentd27cd8196de031c306e7c103df5711bb55e68fdd
[efi] Attempt to detect EFI images that fail Secure Boot verification

An EFI image that is rejected by LoadImage() due to failing Secure
Boot verification is still an EFI image.  Unfortunately, the extremely
broken UEFI Secure Boot model provides no way for us to unambiguously
determine that a valid EFI executable image was rejected only because
it failed signature verification.  We must therefore use heuristics to
guess whether not an image that was rejected by LoadImage() could
still be loaded via a separate PE loader such as the UEFI shim.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/efi_image.c