|
|
Log in / Subscribe / Register

RFC: in-kernel resource manager

From:  Jarkko Sakkinen <jarkko.sakkinen-AT-linux.intel.com>
To:  tpmdd-devel-AT-lists.sourceforge.net
Subject:  [PATCH RFC 0/4] RFC: in-kernel resource manager
Date:  Mon, 2 Jan 2017 15:22:06 +0200
Message-ID:  <20170102132213.22880-1-jarkko.sakkinen@linux.intel.com>
Cc:  linux-security-module-AT-vger.kernel.org, Jarkko Sakkinen <jarkko.sakkinen-AT-linux.intel.com>, Jason Gunthorpe <jgunthorpe-AT-obsidianresearch.com>, linux-kernel-AT-vger.kernel.org (open list)

This patch set adds support for TPM spaces that provide a context
for isolating and swapping transient objects. This patch set does
not yet include support for isolating policy and HMAC sessions but
it is trivial to add once the basic approach is settled (and that's
why I created an RFC patch set).

There's a test script for trying out TPM spaces in

  git://git.infradead.org/users/jjs/tpm2-scripts.git

A simple smoke test can be run by

  sudo python -m unittest -v tpm2_smoke.SpaceTest   

Jarkko Sakkinen (4):
  tpm: migrate struct tpm_buf to struct tpm_chip
  tpm: validate TPM 2.0 commands
  tpm: export tpm2_flush_context_cmd
  tpm: add the infrastructure for TPM space for TPM 2.0

 drivers/char/tpm/Makefile        |   2 +-
 drivers/char/tpm/tpm-chip.c      |  15 ++
 drivers/char/tpm/tpm-dev.c       |  80 ++++++++++-
 drivers/char/tpm/tpm-interface.c |  93 +++++++++----
 drivers/char/tpm/tpm-sysfs.c     |   2 +-
 drivers/char/tpm/tpm.h           | 106 ++++++++------
 drivers/char/tpm/tpm2-cmd.c      | 232 ++++++++++++++++---------------
 drivers/char/tpm/tpm2-space.c    | 288 +++++++++++++++++++++++++++++++++++++++
 include/uapi/linux/tpm.h         |  23 ++++
 9 files changed, 662 insertions(+), 179 deletions(-)
 create mode 100644 drivers/char/tpm/tpm2-space.c
 create mode 100644 include/uapi/linux/tpm.h

-- 
2.9.3



Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds