Configuring DBus session using TPM2TSS_TCTI environment variable
abdawoud opened this issue · 1 comments
Hi,
TPM2TOOLS_TCTI
and TPM2OPENSSL_TCTI
work just fine to configure usage of session DBus, is there a TPM2TSS_TCTI
equivalent?
e.g., export TPM2TSS_TCTI=tabrmd:bus_name=com.intel.tss2.Tabrmd,bus_type=session
Thank you!
Not really.
The System API is not smart like that. You pass a certain TCTI context to Tss2_Sys_Initialize()
call and that's it.
tpm2-tss/src/tss2-sys/api/Tss2_Sys_Initialize.c
Lines 30 to 39 in 8699ab3
The Enhanced System API is much more smart. It uses tctildr, but that does not support environment variables, afaik.
tpm2-tss/src/tss2-esys/esys_context.c
Lines 22 to 46 in 8699ab3
The Feature API is configured via its config file. Here, you could set the path of the config file via the env variable TSS2_FAPICONF
.
Line 10 in 8699ab3
The tests can be configured via the env. variable TPM20TEST_TCTI_NAME
, but i assume that is not what you're looking for.