verifiers: Core TPM support
Add support for performing basic TPM measurements. Right now this only supports extending PCRs statically and only on UEFI. In future we might want to have some sort of mechanism for choosing which events get logged to which PCRs, but this seems like a good default policy and we can wait to see whether anyone has a use case before adding more complexity. Signed-off-by: Matthew Garrett <mjg59@google.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
8d6447d496
commit
f4f4e3c715
17 changed files with 616 additions and 146 deletions
|
@ -960,9 +960,6 @@ grub_script_execute_cmdline (struct grub_script_cmd *cmd)
|
|||
argv.args[i]);
|
||||
}
|
||||
cmdstring[cmdlen - 1] = '\0';
|
||||
grub_tpm_measure ((unsigned char *)cmdstring, cmdlen, GRUB_ASCII_PCR,
|
||||
"grub_cmd", cmdstring);
|
||||
grub_print_error();
|
||||
grub_verify_string (cmdstring, GRUB_VERIFY_COMMAND);
|
||||
grub_free (cmdstring);
|
||||
invert = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue