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?
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