From patchwork Tue Sep 29 16:50:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 11806355 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 359D16CB for ; Tue, 29 Sep 2020 16:50:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1F6EA206F7 for ; Tue, 29 Sep 2020 16:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729434AbgI2Qu1 (ORCPT ); Tue, 29 Sep 2020 12:50:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:43322 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbgI2Qu1 (ORCPT ); Tue, 29 Sep 2020 12:50:27 -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 75EB0ADDF; Tue, 29 Sep 2020 16:50:26 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Lakshmi Ramasubramanian , Mimi Zohar , Jarkko Sakkinen , linux-integrity@vger.kernel.org Subject: [PATCH v3 0/4] TPM 2.0 fixes in IMA tests Date: Tue, 29 Sep 2020 18:50:17 +0200 Message-Id: <20200929165021.11731-1-pvorel@suse.cz> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi, few more fixes, mostly touching older kernels or evmctl versions. Changes in 3rd and 4th commit. Kind regards, Petr Petr Vorel (4): IMA: Move get_algorithm_digest(), set_digest_index() to ima_setup.sh IMA: Rewrite ima_boot_aggregate.c to new API ima_tpm.sh: Fix calculating boot aggregate ima_tpm.sh: Fix calculating PCR aggregate .../integrity/ima/src/ima_boot_aggregate.c | 113 ++++---- .../integrity/ima/tests/ima_measurements.sh | 62 +--- .../security/integrity/ima/tests/ima_setup.sh | 70 +++++ .../security/integrity/ima/tests/ima_tpm.sh | 265 ++++++++++++++---- 4 files changed, 341 insertions(+), 169 deletions(-)