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:
@@ -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',
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name" : "verity",
|
||||
"algorithm" : "sha256",
|
||||
"nvIndex" : {{TPM2_NVPCR_BASE + 2}}
|
||||
}
|
||||
Reference in New Issue
Block a user