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
115 stars 98 forks source link

access to device file /dev/tpm0 #831

Open ltf0925 opened 1 year ago

ltf0925 commented 1 year ago

Hi ,

In my system, there are two tpm device files: /dev/tpm0 and /dev/tpmrm0. Also I have daemon tpm2-abrmd running with default settings. I can run on console command line different tmp2 commands which were sent to tpm2-abrmd. I plan to write an application which is based on go-tpm, where we can see device file " /dev/tpm0 " or "/dev/tpmrm0" is opened in the function OpenTPM().

My question is : do I have to put a file lock on the two device files in case tpm2-abrmd fights with go-tpm for the two tpm devices access?

Thanks

Tim