Skip to content

Commit 60d9aa4

Browse files
committed
tpmr: remove warning "Warn: check public portion of the tpmkey manually"
Discussed under #1630 (comment) TODO added in code. Signed-off-by: Thierry Laurion <insurgo@riseup.net>
1 parent be71430 commit 60d9aa4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

initrd/bin/tpmr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,10 @@ tpm2_startsession() {
347347
--saved-session ||
348348
die "tpm2_flushcontext: unable to flush saved session"
349349
tpm2 readpublic -Q -c "$PRIMARY_HANDLE" -t "$PRIMARY_HANDLE_FILE"
350-
tpm2 startauthsession -Q -c "$PRIMARY_HANDLE_FILE" --hmac-session -S "$ENC_SESSION_FILE"
351-
tpm2 startauthsession -Q -c "$PRIMARY_HANDLE_FILE" --hmac-session -S "$DEC_SESSION_FILE"
350+
#TODO: do the right thing to not have to suppress "WARN: check public portion the tpmkey manually" see https://github.com/linuxboot/heads/pull/1630#issuecomment-2075120429
351+
tpm2 startauthsession -Q -c "$PRIMARY_HANDLE_FILE" --hmac-session -S "$ENC_SESSION_FILE" 2>&1 > /dev/null
352+
#TODO: do the right thing to not have to suppress "WARN: check public portion the tpmkey manually" see https://github.com/linuxboot/heads/pull/1630#issuecomment-2075120429
353+
tpm2 startauthsession -Q -c "$PRIMARY_HANDLE_FILE" --hmac-session -S "$DEC_SESSION_FILE" 2>&1 > /dev/null
352354
tpm2 sessionconfig -Q --disable-encrypt "$DEC_SESSION_FILE"
353355
}
354356

0 commit comments

Comments
 (0)