summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/cpio.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-08-25 18:08:49 +0200
committerLennart Poettering <lennart@poettering.net>2022-08-26 13:08:32 +0200
commit5eb1d8561c076e847b045c2c34f772944fee82e7 (patch)
treebd14da11a0734c27ebfb7e32eb0a16981531929e /src/boot/efi/cpio.c
parentcpio: split out cpio TPM measurement logic from pack_cpio() (diff)
downloadsystemd-5eb1d8561c076e847b045c2c34f772944fee82e7.tar.xz
systemd-5eb1d8561c076e847b045c2c34f772944fee82e7.zip
cpio: don't claim we measured anything if we weren't even asked
This is a bugfix. Follow-up for 599fe002a135570406504998dbb7a42dabc963da
Diffstat (limited to 'src/boot/efi/cpio.c')
-rw-r--r--src/boot/efi/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c
index cec901d0c3..9ffa935e0f 100644
--- a/src/boot/efi/cpio.c
+++ b/src/boot/efi/cpio.c
@@ -488,7 +488,7 @@ nothing:
*ret_buffer_size = 0;
if (ret_measured)
- *ret_measured = true;
+ *ret_measured = n_tpm_pcr > 0;
return EFI_SUCCESS;
}