Open leeehui opened 6 years ago
You're right that it's possible to cancel commands if the TCTI that the tabrmd is using on the backend supports the command. Someone has to write the code to get the cancel command from the client, down through the daemon though and that's non-trivial. Would love to review a patch adding the feature.
@flihp
I’m confused about your last comment. Did you mean, if the abrmd receives a setlocality request, it may cancel the tpm command that is currently being executed?
In my opinion, the following error should only occur when using abrmd with “--tcti=device”, because "setLocaliy" function in tpm2-tss has an implementation(SocketSetLocality) with socket tcti. but, there is still an error showing setlocality is not supported even using “--tcti=socket” .
ERROR: "GDBus.Error:com.intel.tss2.Tabrmd.Error.NotImplemented: setLocality function not implemented."
I know nothing about DBus, so I wonder if the above analysis is right. thanks.