1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-07-01 13:21:12 +02:00

travis: Change env variable TPM_SERVER_TYPE for tpm_server

The default value raw is appropriate for 'swtpm'.  tpm_server
uses the Microsoft packet encapsulation, so the env variable
must have the value mssim.

Signed-off-by: Ken Goldman <kgoldman@us.ibm.com>
Fixes: f831508297 ("Install the swtpm package, if available")
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Ken Goldman
2020-10-12 19:44:12 -04:00
committed by Mimi Zohar
parent 9980149f95
commit 05c03be98b

View File

@ -35,6 +35,8 @@ else
export TPM_COMMAND_PORT=2321
export TPM_PLATFORM_PORT=2322
export TPM_SERVER_NAME="localhost"
# swtpm uses the raw, unencapsulated packet format
export TPM_SERVER_TYPE="raw"
fi
@ -73,6 +75,8 @@ swtpm_start() {
SWTPM_PPID=$!
fi
elif [ -n "${swtpm}" ]; then
# tpm_server uses the Microsoft simulator encapsulated packet format
export TPM_SERVER_TYPE="mssim"
pgrep swtpm
if [ $? -eq 0 ]; then
echo "INFO: Software TPM (tpm_server) already running"