]> git.ipfire.org Git - thirdparty/systemd.git/commit
pcrlock: handle piped PE input
authordongshengyuan <545258830@qq.com>
Mon, 6 Jul 2026 04:55:40 +0000 (12:55 +0800)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2026 09:02:46 +0000 (11:02 +0200)
commit8cbae52fc9dca372d103b1ff117fed9b0aa53071
tree93ebaa33aa752137200f1a615ca56710c1fac57b
parent4839cb914e8a467b4aedf58ab0ca4321f0893068
pcrlock: handle piped PE input

When lock-pe or lock-uki read from stdin,
copy non-regular input to a seekable temporary fd before hashing it.

Fixes #42893.
Signed-off-by: dongshengyuan <dongshengyuan@uniontech.com>
src/pcrlock/pcrlock.c
test/units/TEST-70-TPM2.pcrlock.sh