]> www.infradead.org Git - linux.git/commit
efi/libstub: measure initrd to PCR9 independent of source
authorJeremy Linton <jeremy.linton@arm.com>
Tue, 1 Oct 2024 03:20:28 +0000 (22:20 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 15 Oct 2024 18:21:20 +0000 (20:21 +0200)
commitc004703ed7ae6be30ee7dcb37801bda4c6a24c3b
tree07257eb5f35c0e69c914e122113f8445cc6b88fe
parentade7ccba2d647fced0c1f5f290705dcab14b674e
efi/libstub: measure initrd to PCR9 independent of source

Currently the initrd is only measured if it can be loaded using the
INITRD_MEDIA_GUID, if we are loading it from a path provided via the
command line it is never measured. Lets move the check down a couple
lines so the measurement happens independent of the source.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c