Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access to device file /dev/tpm0 #831

Open
ltf0925 opened this issue Feb 8, 2023 · 0 comments
Open

access to device file /dev/tpm0 #831

ltf0925 opened this issue Feb 8, 2023 · 0 comments

Comments

@ltf0925
Copy link

ltf0925 commented Feb 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant