Adrian Reber 0cb06c715a report-sign-tpm2: certify the SRK and report its public area
Secrets sealed to the SRK, e.g. via the --tpm2-device-key= switch of
systemd-cryptenroll and systemd-repart, can only be unsealed by the TPM
the SRK lives in, and sealing needs no access to that TPM. With the SRK
certified by the attestation key, a verifier of the report hence has a
public key it can trust to encrypt data for the reporting system
specifically. Since TPM2_Clear replaces the SRK, a certification of the
same SRK in a later report also shows that the TPM has not been cleared
in between.

Certify the SRK with each signing key, and provide its public area as
TSS2 JSON, like the signing key's. Marshalled into a TPM2B_PUBLIC this
is what --tpm2-device-key= consumes. If there is no SRK one is created,
like systemd-cryptenroll does.

Whatever sits at the SRK handle is certified. Judging its attributes is
up to the verifier, and whether it can be authorized with a password
session is left to TPM2_Certify. The one exception is noDA: an object
without it with an auth value we don't know would count every failed
attempt towards the TPM's dictionary attack lockout, and reports are
requested repeatedly, so such an object is not certified at all. Apart
from that we only make sure up front that we can calculate the name and
encode the public area, so that a pre-existing SRK we cannot handle
doesn't fail the whole report, and hand the vetted public area to the
report generator, so that an object swapped in at the handle afterwards
fails the name check rather than being certified. Failing to acquire the
SRK is not fatal either, the report is still useful without the
certification.
2026-10-19 17:33:12 +00:00
2026-10-11 04:21:07 +09:00
2026-10-17 07:52:31 +02:00
…
2026-07-08 08:23:04 +02:00
2026-04-18 14:24:47 +01:00
2026-09-09 10:28:25 +02:00
2026-03-06 08:55:55 +01:00
2025-10-07 13:00:12 +01:00
2026-10-17 07:52:31 +02:00
2026-10-15 15:04:13 +02:00
2026-10-19 14:12:53 +02:00

Systemd

System and Service Manager

OBS Packages Status
Semaphore CI 2.0 Build Status
Coverity Scan Status
OSS-Fuzz Status
CIFuzz
CII Best Practices
Fossies codespell report
Translation status
Coverage Status
Packaging status
OpenSSF Scorecard

Details

Most documentation is available on systemd's website.

Assorted, older, general information about systemd can be found in the systemd Wiki.

Information about build requirements is provided in the README file.

Consult our NEWS file for information about what's new in the most recent systemd versions.

Please see the Code Map for information about this repository's layout and content.

Please see the Hacking guide for information on how to hack on systemd and test your modifications.

Please see our Contribution Guidelines for more information about filing GitHub Issues and posting GitHub Pull Requests.

When preparing patches for systemd, please follow our Coding Style Guidelines.

If you are looking for support, please contact our mailing list, join our IRC channel #systemd on libera.chat or Matrix channel

Stable branches with backported patches are available in the stable repo.

We have a security bug bounty program sponsored by the Sovereign Tech Fund hosted on YesWeHack

Repositories with distribution packages built from git main are available on OBS, and also repositories with packages built from the latest stable release

Languages
C 87.4%
Shell 6.5%
Python 4.4%
Meson 1.1%
Rust 0.4%