On 12/05/2018 05:10 AM, Jarkko Sakkinen wrote:
On Tue, Dec 04, 2018 at 09:21:35AM +0100, Roberto Sassu wrote:Currently the TPM driver allows other kernel subsystems to read only the SHA1 PCR bank. This patch modifies the parameters of tpm_pcr_read() and tpm2_pcr_read() to pass a tpm_digest structure, which contains the desired hash algorithm. Also, since commit 125a22105410 ("tpm: React correctly to RC_TESTING from TPM 2.0 self tests") removed the call to tpm2_pcr_read(), the new parameter is expected to be always not NULL. Due to the API change, IMA functions have been modified. Signed-off-by: Roberto Sassu <[email protected]> Acked-by: Mimi Zohar <[email protected]>Reviewed-by: Jarkko Sakkinen <[email protected]> Mimi, Nayna, can you help with testing this (because of the IMA change)?
Tested-by: Nayna Jain <[email protected]> Thanks & Regards, - Nayna
/Jarkko

