]> git.ipfire.org Git - thirdparty/systemd.git/commit
pcrextend: whenever we fail to extend PCRs, reboot immediately
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2025 16:28:47 +0000 (17:28 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 31 Mar 2025 12:13:33 +0000 (21:13 +0900)
commit8b21bbd6f0fb9898ed31472ef9f4e204da984890
tree8debccf212ffa705a25d8c255d0add14dff85fc4
parent1220625a81581327daffbdbcaf06b0fa539143e5
pcrextend: whenever we fail to extend PCRs, reboot immediately

PCR extensions are supposed to be useful for "destroying" the ability to
access TPM bound secrets. Hence, if for some reason we fail to extend a
PCR, it's safer to just reboot, instead of going on without the
extension, leaving secrets potentially accessible which should not be
accessible.

Note that the services exit gracefully if no TPM is found, hence this
should not be triggered on TPM-less systems. However, this enforces that
if there is a TPM that is accessible to Linux and that works properly,
the PCR measurement must complete too.

Inspired by this thread:

https://lists.freedesktop.org/archives/systemd-devel/2025-March/051244.html
units/systemd-pcrfs-root.service.in
units/systemd-pcrfs@.service.in
units/systemd-pcrmachine.service.in
units/systemd-pcrphase-factory-reset.service.in
units/systemd-pcrphase-initrd.service.in
units/systemd-pcrphase-storage-target-mode.service.in
units/systemd-pcrphase-sysinit.service.in
units/systemd-pcrphase.service.in