]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add support for nvindex-based additional PCRs for TPM2, aka "NvPCRs" (#39463)
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Nov 2025 08:00:41 +0000 (09:00 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Nov 2025 08:00:41 +0000 (09:00 +0100)
commit8f62d20b73006edc092715f7996e8a390b8310d0
treed6ccb4e9ec286a7b105f7d81112704d41fd40f2f
parent5fa2fb65a609aeddd10949df2a1b5ab09f8b455c
parent330e66f15e158433e4e77fecc97a85e887d676d5
Add support for nvindex-based additional PCRs for TPM2, aka "NvPCRs"  (#39463)

This is based on the code from #33276, but is cleaned up, and goes for a
modified approach:

the original PR allocated nvindexes fully dynamically, and that created
big headaches, because the assignments needed to be propagated into the
early boot process, and that meant stuffing them as sidecards to the
boot UKIs.

The TCG then offered us a fixed nvindex range assigned to us, and
happily said yes to that, but since then the discussion stalled, we
couldn't get any answer from TCG on this anymore.

This code uses the range that was hinted to us to use, but not
officially assigned to us by default, but makes it build time
configurable so that downstreams can change this.

(This does *not* make it runtime configurable, because that's really
hard, because of the early boot issue again).

This PR comes with a CI test and full docs. And I think this is really a
version should that be merged.

Fixes: https://github.com/systemd/systemd/issues/29877