tpm2-software / tpm2-abrmd

TPM2 Access Broker & Resource Management Daemon implementing the TCG spec.
https://github.com/tpm2-software/tpm2-abrmd
BSD 2-Clause "Simplified" License
116 stars 100 forks source link

tpm2 getcap vendor is failing #834

Open devang4791 opened 1 year ago

devang4791 commented 1 year ago

While executing command - "sudo ./tpm2 getcap vendor" fails with below error:

ERROR:esys:src/tss2-esys/api/Esys_GetCapability.c:305:Esys_GetCapability_Finish() Received a non-TPM Error ERROR:esys:src/tss2-esys/api/Esys_GetCapability.c:106:Esys_GetCapability() Esys Finish ErrorCode (0x000a0008) ERROR: Esys_GetCapability(0xA0008) - tcti:Fails to connect to next lower layer ERROR: Unable to run getcap

On the other hand when tpm2-abrmd is running in parallel, it results in below error:

Command - "sudo tpm2-abrmd --allow-root --tcti=device:/dev/tpm0"

ERROR:src/resource-manager.c:978:get_cap_post_process: assertion failed: (tpm2_response_get_code (resp) == TSS2_RC_SUCCESS) Bail out! ERROR:src/resource-manager.c:978:get_cap_post_process: assertion failed: (tpm2_response_get_code (resp) == TSS2_RC_SUCCESS) Aborted

ahllamas commented 1 year ago

I have been facing a similar issue, both look like #723. Although that issue is from 3 years ago, I wonder if the cause is something else this time.