tpmdd-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
From: Martin Galvan <omgalvan.86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: tpmdd-devel-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org
Subject: Reading from /sys/class/tpm/tpmX/device/pcrs
Date: Tue, 20 Mar 2018 17:13:01 -0300	[thread overview]
Message-ID: <CAN19L9HeGMZ7hO0+tqq_F7Xv+wnGbdjW=rLx=b-pP5ZJvN4w8w@mail.gmail.com> (raw)

Hi all,

Documentation/ABI/stable/sysfs-class-tpm says the following about
/sys/class/tpm/tpmX/device/pcrs:

"The "pcrs" property will dump the current value of all Platform
Configuration Registers in the TPM. Note that since these values may
be constantly changing, the output is only valid for a snapshot in
time."

Does this mean that if I read this file line-by-line through a
stream-like API (such as std::ifstream) I could potentially end up
with reg values from different moments in time? E.g. the PCR-00 value
will correspond to time T0, PCR-01 will correspond to time T1, end so
on.

Would it be safer to make a copy of the file first, or could this have
the same issue?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

                 reply	other threads:[~2018-03-20 20:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN19L9HeGMZ7hO0+tqq_F7Xv+wnGbdjW=rLx=b-pP5ZJvN4w8w@mail.gmail.com' \
    --to=omgalvan.86-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=tpmdd-devel-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).