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

access /dev/tpm0 concurrently in kernel version 4.9.170 #835

Open Berveglieri opened 1 year ago

Berveglieri commented 1 year ago

Hello everyone,

I have a device with tpm model SLB 9670 from Infineon and I would like to access it concurrently. When our application is running it locks the tpm device /dev/tpm0 but we have other process that needs to access the tpm for data encryption and other operations. I have a sunxi device with SOC chipset Allwinner T7. This device has ubuntu 20.04 and kernel version 4.9.170. I have compiled the following components in the device: tpm2-tools version 5.4 tpm2-tss version 4.0.0 tpm2-abrmd version 3.0.0

the broker works and starts just fine, the udev rules have the right permissions and our user belongs to the tss group. But there is no tpmrm0 and we can't access tpm2 from different applications because if the broker starts it locks the /dev/tpm0 and our application just can't access it. Does the broker exposes /dev/tpmrm0? if not what is the right procedure to be able to make our application access the tpm through the broker? Thank you