[image] Implicitly trust first embedded image

iPXE when used as a NIC option ROM can sometimes be reloaded by the
UEFI/BIOS and any pre-initialised memory will remain loaded. When the
imgtrust command is run it sets `require_trusted_images'. Upon
reloading, iPXE tries to load the first embedded image but fails as it
is not marked trusted.

Setting this flag ensures that imgtrust with the first embedded script
is reentrant.

Signed-off-by: Joe Groocock <jgroocock@cloudflare.com>
pull/232/head
Joe Groocock 2019-12-19 13:08:50 +00:00 committed by Michael Brown
parent b9de7e6eda
commit 8488c989cc
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ static void embedded_init ( void ) {
image->name, strerror ( rc ) );
return;
}
/* Trust the selected image implicitly */
image_trust ( image );
}
/** Embedded image initialisation function */