Skip to contentSkip to conversation

default TCTI name - how to compile the default as tabrmd

tpm2 ted.h.kim at oracle.com 2 participants 3 messages May 13, 2020

lore
Share & tools
lore

ted.h.kim at oracle.com

#0 lore raw

Folks,

After I built the tools, I found that the default TCTI was device rather than the tabrmd.

# tpm2_getcap -v
tool="tpm2_getcap" version="4.1.2-rc0" tctis="libtss2-tctildr" 
tcti-default=tcti-device

But what I think I want is that the tcti-default=tabrmd.

I know about the -T option and the TPM2TOOLS_TCTI environment variable. But can I just compile it to have it default to tabrmd?
Is this some "configure" option or something?
How do I change how it compiles?

Thanks,
-ted

Signature · 3 lines
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515
#1 lore raw
Quoted 9 lines · ted.h.kim(a)oracle.com

Folks,

After I built the tools, I found that the default TCTI was device rather than the tabrmd.

# tpm2_getcap -v
tool="tpm2_getcap" version="4.1.2-rc0" tctis="libtss2-tctildr"
tcti-default=tcti-device
Quoted 6 lines

But what I think I want is that the tcti-default=tabrmd.

I know about the -T option and the TPM2TOOLS_TCTI environment variable. But can I just compile it to have it default to tabrmd?
Is this some "configure" option or something?
How do I change how it compiles?

This can be done by setting a symbolic link libts2-tcti-default.so pointing to libts2-tcti-tabrmd.so

# ln -s /usr/lib/libts2-tcti-tabrmd.so /usr/lib/libts2-tcti-default.so
Signature · 1 line
Tadeusz
#2 lore raw
In reply to ted.h.kim at oracle.com
Quoted 15 lines

-----Original Message-----
From: ted.h.kim(a)oracle.com [mailto:ted.h.kim(a)oracle.com]
Sent: Wednesday, May 13, 2020 11:20 AM
To: tpm2(a)lists.01.org
Subject: [tpm2] default TCTI name - how to compile the default as tabrmd

Folks,

After I built the tools, I found that the default TCTI was device rather than the tabrmd.

# tpm2_getcap -v
tool="tpm2_getcap" version="4.1.2-rc0" tctis="libtss2-tctildr"
tcti-default=tcti-device
Quoted 7 lines

But what I think I want is that the tcti-default=tabrmd.

I know about the -T option and the TPM2TOOLS_TCTI environment variable. But can I just compile it to have it default to tabrmd?
Is this some "configure" option or something?
How do I change how it compiles?

Sound like the tpm2-abrmd TCTI isn't on the searchpath. Do you have tpm2-abrmd compiled and installed?

Does this command work:
pkg-config --libs tss2-tcti-tabrmd
-L/usr/local/lib -ltss2-tcti-tabrmd

Perhaps wherever it's installed isn't on the searchpath, which you could update with LD_LIBRARY_PATH, or Just symlink similar to what Tadeusz mentions.