tpm2-tools
tpm2-tools copied to clipboard
Require a logic to parse through session flags for audit and encrypt combinations
Because tpm2-tools at times dispatches additional TPM2 commands to make stateful decisions based on information read from the TPM, there is a possibility of polluting the audit logs. And so, for the auxiliary commands, we need to make sure to turn off audit if it is the only session that is also used for encryption.
Also if an encryption session is present, ensure we use that in all invoked commands.