mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
OvmfPkg/X86QemuLoadImageLib: do not use the legacy linux loader in CVMs.
Do not use the insecure legacy linux loader (which does not enforce secure boot checks) when running in a confidential VM. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
8b22c532b3
commit
5a6a9f7955
2 changed files with 9 additions and 0 deletions
|
|
@ -437,6 +437,12 @@ QemuLoadKernelImage (
|
|||
"OVMF: command line switch for qemu (available in version 10.0 + newer).\n"
|
||||
"\n"
|
||||
);
|
||||
if (PcdGet64 (PcdConfidentialComputingGuestAttr)) {
|
||||
AsciiPrint (
|
||||
"OVMF: Running in confidential VM, not using insecure legacy linux kernel loader.\n"
|
||||
);
|
||||
return EFI_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
RetStatus = QemuFwCfgParseBool (
|
||||
"opt/org.tianocore/EnableLegacyLoader",
|
||||
|
|
|
|||
|
|
@ -44,3 +44,6 @@
|
|||
|
||||
[Guids]
|
||||
gQemuKernelLoaderFsMediaGuid
|
||||
|
||||
[Pcd]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue