From: Ken Goldman <kgold@linux.ibm.com>
To: Mimi Zohar <zohar@linux.ibm.com>,
Ken Goldman <kgoldman@us.ibm.com>,
Linux Integrity <linux-integrity@vger.kernel.org>
Cc: Petr Vorel <pvorel@suse.cz>
Subject: Re: [PATCH v2 1/5] ima-evm-utils: Change env variable TPM_SERVER_TYPE for tpm_server
Date: Thu, 15 Oct 2020 09:04:42 -0400 [thread overview]
Message-ID: <7f070a41-97a8-2cf7-930f-8d194b5b8a97@linux.ibm.com> (raw)
In-Reply-To: <a0060e2dd23281b1dbcc0d71f7615d46dd6f5aa7.camel@linux.ibm.com>
On 10/14/2020 6:28 PM, Mimi Zohar wrote:
>>>>
>>>> fi
>>>> @@ -73,6 +74,8 @@ swtpm_start() {
>>>> SWTPM_PPID=$!
>>>> fi
>>>> elif [ -n "${swtpm}" ]; then
>>>> + # tpm_server uses the Microsoft simulator encapsulated packet format
>>>> + export TPM_SERVER_TYPE="mssim"
>>> Exporting TPM_SERVER_TYPE like this is causing openssl/tumbleweed to
>>> fail.
>>>
>> That's odd. Are you saying that openssl uses the env variable
>> TPM_SERVER_TYPE? What in openssl fails? What's the error
>> message.
> "make check" is showing:
>
>
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 3: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 4: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 5: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 6: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 7: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 8: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> 9: pcrread: failed, rc 00000100
> TPM_RC_INITIALIZE - TPM not initialized by TPM2_Startup or already
> initialized
> INFO: Calculating the boot_aggregate (PCRs 0 - 9) for multiple banks
> Failed to read any TPM PCRs
> errno: No such file or directory (2)
> SKIP: evmctl ima_boot_aggregate:
Are you sure that this failure is within openssl? It doesn't look
that way to me.
Were there perhaps more of those errors? I suspect that because
the messages are labeled 3-9, but PCR 0-9 are read.
I don't know the test code. My guess is:
- If there were 10 errors, the startup command is missing,
causing each PCR read to fail.
- If there were 9 errors, startup is being sent before each PCR read,
but only one is permitted.
next prev parent reply other threads:[~2020-10-15 13:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 23:44 [PATCH v2 0/5] Updates to use IBM TSS C API rather than command line tools Ken Goldman
2020-10-12 23:44 ` [PATCH v2 1/5] ima-evm-utils: Change env variable TPM_SERVER_TYPE for tpm_server Ken Goldman
2020-10-14 22:04 ` Mimi Zohar
2020-10-14 22:17 ` Ken Goldman
2020-10-14 22:28 ` Mimi Zohar
2020-10-15 12:54 ` Ken Goldman
2020-10-15 13:36 ` Mimi Zohar
2020-10-15 13:04 ` Ken Goldman [this message]
2020-10-12 23:44 ` [PATCH v2 2/5] ima-evm-utils: Change PCR iterater from int to uint32_t Ken Goldman
2020-10-12 23:44 ` [PATCH v2 3/5] ima-evm-utils: Change tpm2_pcr_read() to use C code Ken Goldman
2020-11-10 16:04 ` Mimi Zohar
2020-10-12 23:44 ` [PATCH v2 4/5] ima-evm-utils: Correct spelling errors Ken Goldman
2020-10-12 23:44 ` [PATCH v2 5/5] ima-evm-utils: Expand the INSTALL instructions Ken Goldman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f070a41-97a8-2cf7-930f-8d194b5b8a97@linux.ibm.com \
--to=kgold@linux.ibm.com \
--cc=kgoldman@us.ibm.com \
--cc=linux-integrity@vger.kernel.org \
--cc=pvorel@suse.cz \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox