efi: Measure into both CC and TPM if available. (#31939)
authorDionna Amalie Glaze <drdeeglaze@gmail.com>
Tue, 26 Mar 2024 09:26:59 +0000 (02:26 -0700)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 09:26:59 +0000 (09:26 +0000)
commitdbbd87834096bc7765b68ae8ea16b2230d1004c3
treee30513f3cc770c54d36f481591e07631d8a55982
parentb1d18b96c42a4dc21d42f336835ce863b77400cd
efi: Measure into both CC and TPM if available. (#31939)

* efi: Measure into both CC and TPM if available.

It's possible that both measurement protocols are made available, so
instead of assuming only one or the other are available, measure into
both to avoid a problem like CVE-2021-42299.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
src/boot/efi/measure.c