Skip to contentSkip to conversation

how can i use abrmd/tpmrm0 with tpm2-tools

tpm2 Petko Manolov 2 participants 2 messages Dec 12, 2018

lore
Share & tools
lore

Petko Manolov

author
#0 lore raw

Hey guys,

I'm on Debian testing (tpm2-abrmd version 2.0.3, tpm2-tools 3.1.3, kernel v4.19.8) and no matter how i play with environment variables i can't get the tpm2_xxx to talk to the abrm daemon. Since this kernel has builtin RM i assume there might be a collision between the userspace and kernel implementations.

I ran into this issue as my script's 'tpm2_load' runs out of memory (error 0x902). Running "tpm2-abrmd -f --allow-root" doesn't complain but:

# tpm2_takeownership -c
ERROR:tcti:src/tss2-tcti/tcti-device.c:319:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpm0: Device or resource busy
ERROR: tcti init allocation routine failed for library: "device" options: "(null)"
ERROR: Could not load tcti, got: "device"

How do i tell tpm2_xxx to use the userspace daemon instead of /dev/tpm0?

I'd like to apologize if this has been answered before. If that's the case please point me to the corresponding thread.

Petko

#1 lore raw
Quoted 9 lines · Petko Manolov
# tpm2_takeownership -c
ERROR:tcti:src/tss2-tcti/tcti-device.c:319:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpm0: Device or resource busy
ERROR: tcti init allocation routine failed for library: "device" options: "(null)"
ERROR: Could not load tcti, got: "device"

How do i tell tpm2_xxx to use the userspace daemon instead of /dev/tpm0?

I'd like to apologize if this has been answered before. If that's the case please point me to the corresponding thread.

Try 'man tpm2_takeownership' and find the TCTI ENVIRONMENT and TCTI OPTIONS sections.

Signature · 1 line
Tadeusz