]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: add securityfs support for TPM 2.0 firmware event log
authorNayna Jain <nayna@linux.vnet.ibm.com>
Mon, 23 Jan 2017 07:26:27 +0000 (02:26 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 3 Feb 2017 20:03:14 +0000 (22:03 +0200)
commitfada03abd0fbf3421948a307d025f06d2c965ce3
tree413761dcb85122f7929bd4560bf4d4e272f91769
parent7486c48343b1ca4123ae52f887b58fb75a123582
tpm: add securityfs support for TPM 2.0 firmware event log

Unlike the device driver support for TPM 1.2, the TPM 2.0 does
not support the securityfs pseudo files for displaying the
firmware event log.

This patch enables support for providing the TPM 2.0 event log in
binary form. TPM 2.0 event log supports a crypto agile format that
records multiple digests, which is different from TPM 1.2. This
patch enables the tpm_bios_log_setup for TPM 2.0  and adds the
event log parser which understand the TPM 2.0 crypto agile format.

Signed-off-by: Nayna Jain <nayna@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Kenneth Goldman <kgold@linux.vnet.ibm.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/Makefile
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm1_eventlog.c [new file with mode: 0644]
drivers/char/tpm/tpm2_eventlog.c [new file with mode: 0644]
drivers/char/tpm/tpm_acpi.c
drivers/char/tpm/tpm_eventlog.c [deleted file]
drivers/char/tpm/tpm_eventlog.h