From patchwork Tue Feb 23 22:59:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 12101031 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=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 33991C433E0 for ; Tue, 23 Feb 2021 23:09:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE61064E7A for ; Tue, 23 Feb 2021 23:09:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232598AbhBWXID (ORCPT ); Tue, 23 Feb 2021 18:08:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:52104 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbhBWXAS (ORCPT ); Tue, 23 Feb 2021 18:00:18 -0500 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 AFF4EAC69; Tue, 23 Feb 2021 22:59:37 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Mimi Zohar , Lakshmi Ramasubramanian , Tushar Sugandhi , agk@redhat.com, snitzer@redhat.com, gmazyland@gmail.com, linux-integrity@vger.kernel.org, dm-devel@redhat.com Subject: [PATCH v3 0/2] IMA: Add test for dm-crypt measurement Date: Tue, 23 Feb 2021 23:59:28 +0100 Message-Id: <20210223225930.27095-1-pvorel@suse.cz> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org Hi! I updated Tushar's patchset to speedup things. Changes v2->v3 * rename function s/check_ima_ascii_log_for_policy/test_policy_measurement/ * move tst_res TPASS/TFAIL into test_policy_measurement() * drop template=ima-buf (see Lakshmi's patch [1] and discussion about it, it will be removed from ima_keys.sh as well) * moved ima_dm_crypt.sh specific changes to second commit * further API and style related cleanup Could you please check this patchset? Kind regards, Petr [1] https://patchwork.ozlabs.org/project/ltp/patch/20210222023421.12576-1-nramas@linux.microsoft.com/ Tushar Sugandhi (2): IMA: Generalize key measurement tests IMA: Add test for dm-crypt measurement runtest/ima | 1 + .../kernel/security/integrity/ima/README.md | 20 ++++++ .../integrity/ima/tests/ima_dm_crypt.sh | 41 +++++++++++ .../security/integrity/ima/tests/ima_keys.sh | 58 ++------------- .../security/integrity/ima/tests/ima_setup.sh | 71 +++++++++++++++++++ 5 files changed, 139 insertions(+), 52 deletions(-) create mode 100755 testcases/kernel/security/integrity/ima/tests/ima_dm_crypt.sh