]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d2954af4e2a29145015c2b0d7d4d899c5d1009b
tree83e56f99be0498417fdca693ea12c54a2ba37ccb
parent542b585850fe580041c90a2295367ec033bfddd6
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: 72548132d299 ("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