]> git.ipfire.org Git - thirdparty/systemd.git/commit
tpm2: add "systemd-tpm2-swtpm" wrapper for "swtpm"
authorLennart Poettering <lennart@amutable.com>
Mon, 9 Mar 2026 12:06:58 +0000 (13:06 +0100)
committerLennart Poettering <lennart@amutable.com>
Thu, 26 Mar 2026 15:11:34 +0000 (16:11 +0100)
commit056c21aaebce6f7fd83ffe6a1784ff2692dc8744
treec0ed33bf2d769dd5b97d7631bcf81c7c4e0a9f5f
parent6718ba1769184d3e7ebe06801d44d55e30e92ac8
tpm2: add "systemd-tpm2-swtpm" wrapper for "swtpm"

For TPM-less systems it's sometimes valuable to have a fill-in software
TPM running from early boot on, so that TPM-based functionality can
"just work" and rely on TPM semantics, even if it's at a substantially
weaker security level.

This adds a wrapper around swtpm. It's a binary that chainloads swtpm
but does a few preparatory steps and integrates into systemd's logic
otherwise.

All this is then exposed as systemd-tpm2-swtpm.service.

The service is not hooked into much yet, that is added in later commits.
12 files changed:
man/rules/meson.build
man/systemd-tpm2-swtpm.service.xml [new file with mode: 0644]
mkosi/mkosi.conf
mkosi/mkosi.conf.d/centos-fedora/mkosi.conf
mkosi/mkosi.conf.d/debian-ubuntu/mkosi.conf
mkosi/mkosi.initrd.conf/mkosi.conf
mkosi/mkosi.initrd.conf/mkosi.conf.d/centos-fedora.conf
mkosi/mkosi.initrd.conf/mkosi.conf.d/debian-ubuntu.conf
src/tpm2-setup/meson.build
src/tpm2-setup/tpm2-swtpm.c [new file with mode: 0644]
units/meson.build
units/systemd-tpm2-swtpm.service.in [new file with mode: 0644]