From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com ([192.55.52.136]:50889 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeIFOhu (ORCPT ); Thu, 6 Sep 2018 10:37:50 -0400 Date: Thu, 6 Sep 2018 13:02:43 +0300 From: Jarkko Sakkinen To: Martin Galvan Cc: jgg@ziepe.ca, linux-integrity@vger.kernel.org Subject: Re: caps file showing wrong TCG version? Message-ID: <20180906100243.GB27302@linux.intel.com> References: <20180904213304.GD350@ziepe.ca> <20180905173223.GC11368@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Sender: linux-integrity-owner@vger.kernel.org List-ID: On Wed, Sep 05, 2018 at 02:35:12PM -0300, Martin Galvan wrote: > El mie., 5 sept. 2018 a las 14:32, Jarkko Sakkinen > () escribio: > > Those files do not make sense because you can get the same information > > by talking to /dev/tpm0. > > Wouldn't that require using a lower-level interface, though? IIRC one > of the reasons of tpm2-tools' existence is to provide a user-friendly > way to do this. I was hoping there would be some way to do this > without having to install tpm2-tools. Would be trivial to write utilities that talk raw TPM 2.0 protocol and give you equivalent information. Some sample code from my smoke tests: https://github.com/jsakkine-intel/tpm2-scripts I would write such utilities in raw C though but as you can see it is not rocket science. /Jarkko