Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1447383

Re: [PATCH v2] tpm: add sysfs attributes for tpm2

From Andrey Pronin <apronin@chromium.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] tpm: add sysfs attributes for tpm2
Date 2016-07-20 19:50 +0200
Message-ID <rX3N8-4tM-9@gated-at.bofh.it> (permalink)
References <rV0A1-xW-3@gated-at.bofh.it> <rWPTP-41h-11@gated-at.bofh.it> <rX3ap-4fX-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jul 20, 2016 at 11:05:53AM -0600, Jason Gunthorpe wrote:
> On Tue, Jul 19, 2016 at 07:51:52PM -0700, Andrey Pronin wrote:
> > Add sysfs attributes in TPM2.0 case for:
> >  - TPM_PT_PERMANENT flags
> >  - TPM_PT_STARTUP_CLEAR flags
> >  - lockout-related properties
> 
> I'm not completely sure we need to have these sysfs attributes. Do you
> have a reason to expose them? Does udev do something based on them? Is
> it just for debugging?
> 
> Otherwise it looks about right to me.
> 

In practice, useful for scripts that monitor in what state
the system started, was there a lockout, can we use tpm for
attestation, can we rely on data stored in NVRAM, etc. And
then interact with the user accordingly.

I don't know of udev rules that do anything based on them,
but in a multi-tpm system, I can envision one that selects
the tpm that was actually used by firmware as the primary one,
or controls permissions for the device based on the state it's
in.

For TPM1.2 we expose some flags from TPM_PERMANENT_FLAGS and
TPM_CAP_PROP_OWNER, for example, to show if the tpm is owned,
enabled etc. A combination of ph/eh/shEnable and *AuthSet flags
from TPM2 provides info allowing to make similar decisions about
the tpm being 'owned' or 'enabled' for userland scripts.

Andrey

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] tpm: driver- and tpm2-specific sysfs attributes Andrey Pronin <apronin@chromium.org> - 2016-07-15 04:00 +0200
  [PATCH 2/2] tpm: support driver-specific sysfs attrs in tpm_tis_core Andrey Pronin <apronin@chromium.org> - 2016-07-15 04:00 +0200
    Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in  tpm_tis_core Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-07-15 05:30 +0200
      Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in  tpm_tis_core Andrey Pronin <apronin@chromium.org> - 2016-07-15 05:40 +0200
        Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in  tpm_tis_core Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-07-18 21:30 +0200
    Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in  tpm_tis_core Andrey Pronin <apronin@chromium.org> - 2016-07-18 21:20 +0200
    Re: [PATCH 2/2] tpm: support driver-specific sysfs attrs in  tpm_tis_core Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-07-18 21:20 +0200
  [PATCH v2] tpm: add sysfs attributes for tpm2 Andrey Pronin <apronin@chromium.org> - 2016-07-20 05:00 +0200
    Re: [PATCH v2] tpm: add sysfs attributes for tpm2 Jason Gunthorpe <jgunthorpe@obsidianresearch.com> - 2016-07-20 19:10 +0200
      Re: [PATCH v2] tpm: add sysfs attributes for tpm2 Andrey Pronin <apronin@chromium.org> - 2016-07-20 19:50 +0200

csiph-web