]> git.ipfire.org Git - thirdparty/systemd.git/commit
veritysetup: don't measure root hash signature after unsigned fallback
authorPaul Meyer <katexochen0@gmail.com>
Wed, 17 Jun 2026 15:21:51 +0000 (17:21 +0200)
committerPaul Meyer <katexochen0@gmail.com>
Mon, 22 Jun 2026 15:29:50 +0000 (17:29 +0200)
commitde2ec842d1a79895bcd3ba998c8230200bbba2fb
tree76d7da212f914994521c2d6117001583be4f82d4
parentf8a19437582f3114ef0acfa9330f21df15f7862e
veritysetup: don't measure root hash signature after unsigned fallback

verb_attach() falls back to unsigned activation (crypt_activate_by_volume_key)
when signed activation fails, but still passed the signature to
pcrextend_verity_now(). The signer is parsed out of the (unverified)
signature and folded into the dm_verity NvPCR measurement, making an
unsigned fallback indistinguishable from a genuinely signed activation to
an attester. Only measure the signature when signed activation succeeded.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
src/veritysetup/veritysetup.c