mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
The UEFI spec 2.11 documents EFI_SECURITY_VIOLATION for both
gBS->LoadImage() and gBS->StartImage() as
> [Image was loaded and an ImageHandle was created with a valid
> EFI_LOADED_IMAGE_PROTOCOL. However,] the current platform policy
> specifies that the image should not be started.
Additionally, the spec documents EFI_ACCESS_DENIED for gBS->LoadImage() as
> Image was not loaded because the platform policy prohibits the image
> from being loaded. NULL is returned in ImageHandle.
When image loading/starting fails under the above conditions (according to
the status code being reported), print a hint about Secure Boot. This
should help users diagnose and fix their Secure Boot configuration.
Updates:
|
||
|---|---|---|
| .. | ||
| PlatformBmPrintScLib.inf | ||
| StatusCodeHandler.c | ||