mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-13 06:05:19 +00:00
tpmr: check for CONFIG_TPM2_CAPTURE_PCAP=y to export TPM comms under /tmp/tpm0.pcap (not just check for existence of CONFIG_TPM2_CAPTURE_PCAP under env)
So that export CONFIG_TPM2_CAPTURE_PCAP=n across all boards doesn't break and so that its easy for auditors to just toggle on in board configs Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
ff94d78c03
commit
d2b84597bf
@ -17,7 +17,7 @@ PCR_SIZE=
|
||||
# Export CONFIG_TPM2_CAPTURE_PCAP=y from your board config to capture tpm2 pcaps to
|
||||
# /tmp/tpm0.pcap; Wireshark can inspect these. (This must be enabled at build
|
||||
# time so the pcap TCTI driver is included.)
|
||||
if [ -n "$CONFIG_TPM2_CAPTURE_PCAP" ]; then
|
||||
if [ "$CONFIG_TPM2_CAPTURE_PCAP" == "y" ]; then
|
||||
export TPM2TOOLS_TCTI="pcap:device:/dev/tpmrm0"
|
||||
export TCTI_PCAP_FILE="/tmp/tpm0.pcap"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user