All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/3] Trusted Key policy for TPM 2.0
@ 2020-09-12 17:31 ` James Bottomley
  0 siblings, 0 replies; 14+ messages in thread
From: James Bottomley @ 2020-09-12 17:31 UTC (permalink / raw)
  To: linux-integrity
  Cc: Mimi Zohar, Jarkko Sakkinen, David Woodhouse, keyrings, David Howells

This is a lockstep patch with the prior trusted key rework patch.  Now
the key format is ASN.1, the policy statements needed to unseal the
key can be coded into the key file itself meaning the kernel can now
construct and use the policy session necessary rather than the user
having to do it.  This makes using TPM 2.0 keys with policy much easier.

The current implementation only has a limited subset of the full TPM
2.0 policy commands, but it is enough to implement keys locked to PCR
values and expiring keys.  The main missing feature is support for the
TPM2_PolicyOR statement, which means all current policy has to be AND
chains (key doesn't unlock unless every policy statement succeeds).

James

---

James Bottomley (3):
  security: keys: trusted: add PCR policy to TPM2 keys
  security: keys: trusted: add ability to specify arbitrary policy
  security: keys: trusted: implement counter/timer policy

 .../security/keys/trusted-encrypted.rst       |  83 +++-
 include/keys/trusted-type.h                   |   5 +-
 include/linux/tpm.h                           |   6 +
 security/keys/Kconfig                         |   2 +
 security/keys/trusted-keys/Makefile           |   2 +-
 security/keys/trusted-keys/tpm2-policy.c      | 463 ++++++++++++++++++
 security/keys/trusted-keys/tpm2-policy.h      |  31 ++
 security/keys/trusted-keys/tpm2key.asn1       |  13 +
 security/keys/trusted-keys/trusted_tpm1.c     |  23 +-
 security/keys/trusted-keys/trusted_tpm2.c     | 120 ++++-
 10 files changed, 733 insertions(+), 15 deletions(-)
 create mode 100644 security/keys/trusted-keys/tpm2-policy.c
 create mode 100644 security/keys/trusted-keys/tpm2-policy.h

-- 
2.26.2

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-09-18 23:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-12 17:31 [PATCH v11 0/3] Trusted Key policy for TPM 2.0 James Bottomley
2020-09-12 17:31 ` James Bottomley
2020-09-12 17:39 ` James Bottomley
2020-09-12 17:39   ` James Bottomley
2020-09-12 17:39   ` [PATCH v11 1/3] security: keys: trusted: add PCR policy to TPM2 keys James Bottomley
2020-09-12 17:39     ` James Bottomley
2020-09-14 19:37     ` Jarkko Sakkinen
2020-09-14 19:37       ` Jarkko Sakkinen
2020-09-18 23:40       ` James Bottomley
2020-09-18 23:40         ` James Bottomley
2020-09-12 17:39   ` [PATCH v11 2/3] security: keys: trusted: add ability to specify arbitrary policy James Bottomley
2020-09-12 17:39     ` James Bottomley
2020-09-12 17:39   ` [PATCH v11 3/3] security: keys: trusted: implement counter/timer policy James Bottomley
2020-09-12 17:39     ` James Bottomley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.