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 BBC29CA9EAF for ; Thu, 24 Oct 2019 17:20:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96AFB20659 for ; Thu, 24 Oct 2019 17:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440000AbfJXRU2 (ORCPT ); Thu, 24 Oct 2019 13:20:28 -0400 Received: from mga14.intel.com ([192.55.52.115]:40506 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbfJXRU2 (ORCPT ); Thu, 24 Oct 2019 13:20:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2019 10:20:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,225,1569308400"; d="scan'208";a="399837335" Received: from nesterov-mobl1.ccr.corp.intel.com (HELO localhost) ([10.252.8.153]) by fmsmga006.fm.intel.com with ESMTP; 24 Oct 2019 10:20:24 -0700 Date: Thu, 24 Oct 2019 20:20:23 +0300 From: Jarkko Sakkinen To: Petr Vorel Cc: Nayna , Mimi Zohar , 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: <20191024172023.GA7948@linux.intel.com> References: <1558041162.3971.2.camel@linux.ibm.com> <20190517150456.GA11796@dell5510> <20191024121848.GA5908@dell5510> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024121848.GA5908@dell5510> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On Thu, Oct 24, 2019 at 02:18:48PM +0200, Petr Vorel wrote: > Hi all, > > I wonder what to do with this patch "ima: skip verifying TPM 2.0 PCR values" [1]. > Is it a correct way to differentiate between TPM 1.2 and TPM 2.0? > Or something else should be applied? > > How is the work on TPM 2.0 Linux sysfs interface? > But even it's done in near future, we'd still need some way for older kernels. > > Kind regards, > Petr > > [1] https://patchwork.ozlabs.org/patch/1100733/ version_major sysfs file would be acceptable if someone wants to proceed and send such patch. Also replicants for durations and timeouts files would make sense for TPM 2.0. /Jarkko From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Sakkinen Date: Thu, 24 Oct 2019 20:20:23 +0300 Subject: [LTP] [PATCH] ima: skip verifying TPM 2.0 PCR values In-Reply-To: <20191024121848.GA5908@dell5510> References: <1558041162.3971.2.camel@linux.ibm.com> <20190517150456.GA11796@dell5510> <20191024121848.GA5908@dell5510> Message-ID: <20191024172023.GA7948@linux.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On Thu, Oct 24, 2019 at 02:18:48PM +0200, Petr Vorel wrote: > Hi all, > > I wonder what to do with this patch "ima: skip verifying TPM 2.0 PCR values" [1]. > Is it a correct way to differentiate between TPM 1.2 and TPM 2.0? > Or something else should be applied? > > How is the work on TPM 2.0 Linux sysfs interface? > But even it's done in near future, we'd still need some way for older kernels. > > Kind regards, > Petr > > [1] https://patchwork.ozlabs.org/patch/1100733/ version_major sysfs file would be acceptable if someone wants to proceed and send such patch. Also replicants for durations and timeouts files would make sense for TPM 2.0. /Jarkko