tpm2-setup: introduce nvpcr for measuring Verity images

I thnk it's crucial we start to measure Verity images as we activate
them, so that the event log has a full trace of the compisition of the
system. hence let's introduce a new NvPCR for this purpse, under the
name "verity".
This commit is contained in:
Lennart Poettering
2026-02-17 22:00:13 +01:00
parent 0a8f393c64
commit 8485bba53d
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -31,12 +31,12 @@ executables += [
'HAVE_TPM2',
],
},
]
if conf.get('ENABLE_BOOTLOADER') == 1 and conf.get('HAVE_OPENSSL') == 1 and conf.get('HAVE_TPM2') == 1
nvpcrs = [ 'cryptsetup',
'hardware' ]
'hardware',
'verity']
foreach n : nvpcrs
custom_target(
input : 'nvpcr/' + n + '.nvpcr.in',
+5
View File
@@ -0,0 +1,5 @@
{
"name" : "verity",
"algorithm" : "sha256",
"nvIndex" : {{TPM2_NVPCR_BASE + 2}}
}