]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Use tpm_default_chip() and call TPM functions with a tpm_chip
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 26 Jun 2018 19:09:32 +0000 (15:09 -0400)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 28 Jul 2018 14:03:11 +0000 (17:03 +0300)
commitcde93bf0feec577e10f2e69af58abe39d6457b28
tree26ab375331cfdd09aabc85709bd3c23c7afa04d3
parent950159854c743ab40295c27208ead832b71581a2
ima: Use tpm_default_chip() and call TPM functions with a tpm_chip

Rather than accessing the TPM functions by passing a NULL pointer for
the tpm_chip, which causes a lookup for a suitable chip every time, get a
hold of a tpm_chip and access the TPM functions using it.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
security/integrity/ima/ima.h
security/integrity/ima/ima_crypto.c
security/integrity/ima/ima_init.c
security/integrity/ima/ima_queue.c