KEYS: trusted: allow trusted.ko to initialize w/o a TPM
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 25 Mar 2019 14:43:10 +0000 (16:43 +0200)
committerJames Morris <james.morris@microsoft.com>
Mon, 8 Apr 2019 22:58:53 +0000 (15:58 -0700)
commitc78719203fc629421a0d91d3d22240c36ae0119c
tree83e56f99be0498417fdca693ea12c54a2ba37ccb
parent7110629263469b4664d00b38ef80a656eddf3637
KEYS: trusted: allow trusted.ko to initialize w/o a TPM

Allow trusted.ko to initialize w/o a TPM. This commit also adds checks
to the exported functions to fail when a TPM is not available.

Fixes: 240730437deb ("KEYS: trusted: explicitly use tpm_chip structure...")
Cc: James Morris <jmorris@namei.org>
Reported-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/keys/trusted.c