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=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 3E4A1C433E6 for ; Mon, 31 Aug 2020 10:29:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 23DFB20936 for ; Mon, 31 Aug 2020 10:29:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726106AbgHaK3h (ORCPT ); Mon, 31 Aug 2020 06:29:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:57494 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbgHaK3h (ORCPT ); Mon, 31 Aug 2020 06:29:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 38548AC1D; Mon, 31 Aug 2020 10:30:11 +0000 (UTC) Date: Mon, 31 Aug 2020 12:29:34 +0200 From: Petr Vorel To: Mimi Zohar Cc: ltp@lists.linux.it, Lachlan Sneff , Lakshmi Ramasubramanian , Mimi Zohar , linux-integrity@vger.kernel.org Subject: Re: [LTP v4 4/5] IMA: Add a test to verify measurement of certificate imported into a keyring Message-ID: <20200831102934.GB17121@dell5510> Reply-To: Petr Vorel References: <20200827132354.GA20439@dell5510> <20200827135503.GA11990@dell5510> <20200827225417.GA29921@dell5510> <20200828060554.GB15251@dell5510> <3c720a7060a846088f8e60ce8b5c032467e97f23.camel@linux.ibm.com> <20200828124924.GB15355@dell5510> <889c90c2777e2683749ab6d339e25aa85b192407.camel@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <889c90c2777e2683749ab6d339e25aa85b192407.camel@linux.ibm.com> Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi Mimi, > On Fri, 2020-08-28 at 14:49 +0200, Petr Vorel wrote: > > > On Fri, 2020-08-28 at 08:05 +0200, Petr Vorel wrote: > > > > BTW there are also plans for reboot support [1] [2], that could be used as > > > > workaround for configuration without CONFIG_IMA_READ_POLICY=y and > > > > CONFIG_IMA_WRITE_POLICY=y. > > > The reboot support could also be used for carrying the IMA measurement > > > list across kexec and verifying the TPM PCRs. > > Adding into my TODO list. I'd just run whole test ima_kexec.sh twice and reboot > > in between. > The ima_kexec.sh tests measures the kexec boot cmdline and kernel > image. What's needed is walking the measurement list re-calculating > the PCRs and then verifying them against the actual TPM PCRs. Maybe > running the ima_tpm.sh test twice. Right, thanks for clarification :). It takes some time till reboot implementation in LTP API is implemented. But I hope to send fix for TPM 2.0 and sha256 hash (these changes in v5.8) for ima_tpm.sh this week. Kind regards, Petr