From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2590CA9EA0 for ; Fri, 25 Oct 2019 12:57:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 946E521D7B for ; Fri, 25 Oct 2019 12:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725887AbfJYM5Q (ORCPT ); Fri, 25 Oct 2019 08:57:16 -0400 Received: from mail.hallyn.com ([178.63.66.53]:39036 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438960AbfJYM5Q (ORCPT ); Fri, 25 Oct 2019 08:57:16 -0400 X-Greylist: delayed 312 seconds by postgrey-1.27 at vger.kernel.org; Fri, 25 Oct 2019 08:57:15 EDT Received: by mail.hallyn.com (Postfix, from userid 1001) id 6836A85B; Fri, 25 Oct 2019 07:52:02 -0500 (CDT) Date: Fri, 25 Oct 2019 07:52:02 -0500 From: "Serge E. Hallyn" To: Petr Vorel Cc: Jerry Snitselaar , Mimi Zohar , Jarkko Sakkinen , Nayna , linux-integrity , ltp@lists.linux.it, Piotr =?iso-8859-1?Q?Kr=F3l?= , Peter Huewe , Jason Gunthorpe Subject: Re: [LTP] [PATCH] ima: skip verifying TPM 2.0 PCR values Message-ID: <20191025125202.GA1966@mail.hallyn.com> References: <1558041162.3971.2.camel@linux.ibm.com> <20190517150456.GA11796@dell5510> <20191024121848.GA5908@dell5510> <20191024172023.GA7948@linux.intel.com> <20191024213842.c6cl4tlnsi56pgcy@cantor> <1571964420.5173.12.camel@linux.ibm.com> <20191025021159.dt7ifgnebnke6ca7@cantor> <20191025085617.GA13329@x230> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025085617.GA13329@x230> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Fri, Oct 25, 2019 at 10:56:17AM +0200, Petr Vorel wrote: > Hi, > > > /sys/kernel/security/tpmX/major_version (on fedora and rhel at least, is it elsewhere on other distros?) > > > versus > > > /sys/class/tpm/tpmX/major_version > > Is it more HW related (/sys/class/tpm/tpmX) or LSM related > (/sys/kernel/security/tpmX)? > I guess /sys/kernel/security/tpmX might be better. This is purely about whether the phsyical TPM chip is 1.2 or 2., right? /sys/class/tpm/tpmX is where I would expect to find that. > Thanks for implementing this, I'll try to test it soon. Yes, it's been a pain point, and someone (..., I) should have done this years ago - thanks!