Open williamcroberts opened 4 years ago
Esys_GetCapability() only allows audit sessions or no session. Change ESYS_TR_PASSWORD to ESYS_TR_NONE.
Esys_GetCapability() only allows audit sessions or no session. Change ESYS_TR_PASSWORD to ESYS_TR_NONE.
Yes I'm aware the code shouldn't work, but it is causing tpm2-abrmd to stop running. Misbehaving clients shouldn't kill the service.
The reason why it stops running is because it is build in debug mode. g_assert is a debug macro and should be compiled out in the release build.
The reason why it stops running is because it is build in debug mode. g_assert is a debug macro and should be compiled out in the release build.
I get that, i really do, but a debug build shouldn't make assertions on clients like this. Assertions should be on internal state not external state that hasn't been filtered or that is not within control of the program.
So I'll make this more clear, that assertion should be removed and either made to return an RM error to the client or just let the TPM return that error, so release and debug builds behave the same
By code:
Yes I understand the session is wrong... but it triggers this condition.