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)
commit4d23cc323cdbee1cbcd8a7f059fff9ef2b0c473d
tree413761dcb85122f7929bd4560bf4d4e272f91769
parente46e22f12b19f0068b02afcf6edb716b4f49934f
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 [moved from drivers/char/tpm/tpm_eventlog.c with 95% similarity]
drivers/char/tpm/tpm2_eventlog.c [new file with mode: 0644]
drivers/char/tpm/tpm_acpi.c
drivers/char/tpm/tpm_eventlog.h