]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi-loader: when detecting if we are booted in UKI measured boot mode, imply a check...
authorLennart Poettering <lennart@poettering.net>
Tue, 2 Jan 2024 16:44:53 +0000 (17:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Jan 2024 16:48:53 +0000 (17:48 +0100)
commit03d808c9f6ea75d74bfaf2b4e37aad8d4935c5cd
tree235ff6ab442e2e341a88ea933a25827df5ed7341
parentc0d672f1615c9af026a53de426206725798dc5ce
efi-loader: when detecting if we are booted in UKI measured boot mode, imply a check for TPM2

We simply don't carry any userspace support for TPM1.2 in our tree, and
we shouldn't given it's too weak by today's standards. Hence, if we
check if we are booted in UKI measured boot mode, don't just check if we
are booted in EFI, but also check that we have a TPM2 chip (as opposed
to none or only a TPM1.2 chip).

This is an alternative to #30652 but more comprehensive (and simpler),
since it covers all invocations of efi_measured_uki().

Fixes: #30650
Replaces: #30652
src/shared/efi-loader.c