diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-18 22:25:37 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-19 12:04:15 +0200 |
commit | b7f051c91db90d909f77266a42c54b3a768c8e0c (patch) | |
tree | 37b7c031ae4f806b541fcce72da44405ba67b100 /src/boot/measure.c | |
parent | Merge pull request #34479 from yuwata/sd-json-dispatch-field-table-static (diff) | |
download | systemd-b7f051c91db90d909f77266a42c54b3a768c8e0c.tar.xz systemd-b7f051c91db90d909f77266a42c54b3a768c8e0c.zip |
tpm2-util: introduce tpm2_is_fully_supported()
Diffstat (limited to 'src/boot/measure.c')
-rw-r--r-- | src/boot/measure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/measure.c b/src/boot/measure.c index 1af5fef720..36d42147a1 100644 --- a/src/boot/measure.c +++ b/src/boot/measure.c @@ -1005,7 +1005,7 @@ static int validate_stub(void) { bool found = false; int r; - if (tpm2_support() != TPM2_SUPPORT_FULL) + if (!tpm2_is_fully_supported()) return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "Sorry, system lacks full TPM2 support."); r = efi_stub_get_features(&features); |