-
Notifications
You must be signed in to change notification settings - Fork 24
Failed to open device file /dev/tpm0: Device or resource busy #77
Comments
Is there a solution for this problem? |
According to the output of ssh-keygen, libtpm2-pk11 is configured to directly access /dev/tpm0, while the user is not allowed to access it or another process already has access to the tpm2 (like the tpm2 abrmd daemon) |
I haven't any user process accessing to the /dev/tpm0, only the "tpm_tis" linux kernel module. This is my configuration for libtpm2-pk11: #Type can be device/socket/tabrmd What could be the problem? |
Update (with debug enabled):
_ As said in my old post i haven't any user process accessing to the /dev/tpm0, access broker tpm2-tabrmd is not installed and tpm2-tss stack used is the release 2.0.0. Any suggestion is appreciated. BR |
I almost forgot, but as pkcs11 allows multiple sessions in different threads, for each session a new connection to the tpm is opened beside the global connection to receive some basic information about the TPM. Therefore a resource manager is required, like abrmd or the one included in recent kernel versions (untested). Can probably be solved by adding a mutex to allow requests from different threads, but there are currently no plans to implement it. |
restart tpm2-abrmd solve my problem~ |
Problem fixed in the issue #65 seems to be reappeared.
I'm using:
Created a persistent tpm key:
Then the following fail:
The text was updated successfully, but these errors were encountered: