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
+6
View File
@@ -27,6 +27,12 @@ CHANGES WITH 262:
older systemd versions, however systemd continues to accept TPM-sealed
credentials that were created before this change.
* The "tpm2-measure-bank=" crypttab option of systemd-cryptsetup is
now deprecated and has no effect. Volume key measurements are
performed via varlink call to systemd-pcrextend, which automatically
selects all suitable TPM2 PCR banks; the banks can no longer be
restricted per volume.
* The legacy socket for controlling systemd-udevd has been removed, and
udevadm now unconditionally uses Varlink IPC. The legacy UNIX socket
/run/udev/control, which is sometimes used to check whether udevd is