summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorMatthew Garrett2019-05-20 22:55:01 +0200
committerJarkko Sakkinen2019-06-24 22:57:49 +0200
commit6b0326190205603fa9b7fe1b05ff1f8fb22de266 (patch)
tree62c1edf1644ce9b0d8255634a755649e246c9764 /drivers/char
parenttpm: Append the final event log to the TPM event log (diff)
downloadkernel-qcow2-linux-6b0326190205603fa9b7fe1b05ff1f8fb22de266.tar.gz
kernel-qcow2-linux-6b0326190205603fa9b7fe1b05ff1f8fb22de266.tar.xz
kernel-qcow2-linux-6b0326190205603fa9b7fe1b05ff1f8fb22de266.zip
efi: Attempt to get the TCG2 event log in the boot stub
Right now we only attempt to obtain the SHA1-only event log. The protocol also supports a crypto agile log format, which contains digests for all algorithms in use. Attempt to obtain this first, and fall back to obtaining the older format if the system doesn't support it. This is lightly complicated by the event sizes being variable (as we don't know in advance which algorithms are in use), and the interface giving us back a pointer to the start of the final entry rather than a pointer to the end of the log - as a result, we need to parse the final entry to figure out its length in order to know how much data to copy up to the OS. Signed-off-by: Matthew Garrett <mjg59@google.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Bartosz Szczepanek <bsz@semihalf.com> Tested-by: Bartosz Szczepanek <bsz@semihalf.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions