]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: Remap bad PCR set early to EPERM
authorKai Lüke <kai@amutable.com>
Mon, 20 Apr 2026 14:07:13 +0000 (23:07 +0900)
committerKai Lüke <pothos@users.noreply.github.com>
Fri, 10 Jul 2026 06:07:47 +0000 (08:07 +0200)
commitd09e025b85eeb783bd4af97910f9ee77513ae73e
tree390e26266555a3f2ca679750bf9ad23430fecbd0
parent19eac27e623c8cd5283455ed35ab54f170aad47f
cryptsetup: Remap bad PCR set early to EPERM

Currently libcryptsetup's look treats ENOANO special because it's used
to signal PIN requirement. But the bad PCR set can also contain ENOANO
for a mismatch from a PolicyOR branch.
To continue iterating, remap the bad PCR set to EPERM early. This would
in theory also allow us to simplify the matching for the iteration
condition but we leave this as is for now to prevent a future
regression.
src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
src/shared/cryptsetup-tpm2.c