Skip to content

Re-establishing connection if swtpm process restarts #1

@daghaian

Description

@daghaian

Hi @jx6f ,

I stumbled across your project which I found a use for (not for tamper purposes), but to proxy a unix file from QEMU to swtpm and vice-versa. I'm trying to find where I could modify your existing logic, to account for the scenario where the TCP connection to the swtpm server/control, dies for any reason. I"m not have any a ton of luck but ideally I want to contribute a retry logic to re-establish the connection. From what I can tell right now, the logic in exchange.go hangs here:

responseLen, err := ex.Dst.Read(respBuf)

As expected, my guest throws the following:

ERROR:tcti:src/tss2-tcti/tcti-device.c:487:Tss2_Tcti_Device_Init() timeout waiting for response from fd 3
ERROR:sys:src/tss2-sys/api/Tss2_Sys_Execute.c:110:Tss2_Sys_ExecuteFinish() Unsupported device. The device is a TPM 1.2
ERROR: GetCapability:Get NV Index list Error. TPM Error:0x80001
ERROR: Unable to run /usr/bin/tpm2_nvlist

Any insight would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions