cryptsetup: measure via the pcrextend varlink service

Measure the volume key and unlock keyslot through io.systemd.PCRExtend
instead of driving the TPM directly via tpm2-util, matching how the
verity and imds measurements already work.

Bank selection and the TPM context now live entirely in
systemd-pcrextend. As a result the tpm2-measure-bank= crypttab option
can no longer be honored per volume and is now a deprecated no-op.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2026-07-28 14:59:02 +02:00
parent 1812d8792f
commit 1bdf2db6f7
6 changed files with 138 additions and 101 deletions
+2 -5
View File
@@ -939,11 +939,8 @@
<varlistentry>
<term><option>tpm2-measure-bank=</option></term>
<listitem><para>Selects one or more TPM2 PCR banks to measure the volume key into, as configured with
<option>tpm2-measure-pcr=</option> above. Multiple banks may be specified, separated by a colon
character. If not specified, automatically determines available and used banks. Expects a message
digest name (e.g. <literal>sha1</literal>, <literal>sha256</literal>, …) as argument, to identify the
bank.</para>
<listitem><para>This option is deprecated and has no effect since version 262. All suitable PCR
banks are used.</para>
<xi:include href="version-info.xml" xpointer="v253"/></listitem>
</varlistentry>