Skip to content

Commit

Permalink
ABI: add sysfs description for tpm exports of PCR registers
Browse files Browse the repository at this point in the history
Adds the ABI entries for the new

/sys/class/tpm/tpm<n>/pcr-<hash>/<m>

files which are added to export the PCR hash values on a one value per
file basis.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
  • Loading branch information
James Bottomley authored and Jarkko Sakkinen committed Feb 16, 2021
1 parent aab73d9 commit 52d0848
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Documentation/ABI/stable/sysfs-class-tpm
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,17 @@ Description: The "tpm_version_major" property shows the TCG spec major version
Example output::

2

What: /sys/class/tpm/tpmX/pcr-H/N
Date: March 2021
KernelVersion: 5.12
Contact: linux-integrity@vger.kernel.org
Description: produces output in compact hex representation for PCR
number N from hash bank H. N is the numeric value of
the PCR number and H is the crypto string
representation of the hash

Example output::

cat /sys/class/tpm/tpm0/pcr-sha256/7
2ED93F199692DC6788EFA6A1FE74514AB9760B2A6CEEAEF6C808C13E4ABB0D42

0 comments on commit 52d0848

Please sign in to comment.