From patchwork Thu Jun 13 16:14:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 10992645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5AE141515 for ; Thu, 13 Jun 2019 16:14:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B40826223 for ; Thu, 13 Jun 2019 16:14:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F019262FF; Thu, 13 Jun 2019 16:14:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA0C026224 for ; Thu, 13 Jun 2019 16:14:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731743AbfFMQOr (ORCPT ); Thu, 13 Jun 2019 12:14:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:34120 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731187AbfFMQOr (ORCPT ); Thu, 13 Jun 2019 12:14:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2D87AAC94; Thu, 13 Jun 2019 16:14:46 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Mimi Zohar , Ignaz Forster , linux-integrity@vger.kernel.org Subject: [PATCH v4 0/4] LTP reproducer on broken IMA on overlayfs Date: Thu, 13 Jun 2019 18:14:10 +0200 Message-Id: <20190613161414.29161-1-pvorel@suse.cz> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Mimi, Ignaz, changes v3->v4: * Add helper check_ima_policy() and use it in ima_measurements.sh and evm_overlay.sh * Rephrase commit message for ima_measurements.sh changes and docs * Use SPDX-License-Identifier: GPL-2.0-or-later Anything wrong in docs / commit message? Kind regards, Petr Petr Vorel (4): ima: Call test's cleanup inside ima_setup.sh cleanup shell: Add $TST_DEVICE as default parameter to tst_umount ima/ima_measurements.sh: Require builtin IMA tcb policy ima: Add overlay test + doc doc/test-writing-guidelines.txt | 4 +- runtest/ima | 1 + testcases/commands/df/df01.sh | 7 +- testcases/commands/mkfs/mkfs01.sh | 2 +- .../security/integrity/ima/tests/README.md | 83 +++++++++++++++++ .../integrity/ima/tests/evm_overlay.sh | 93 +++++++++++++++++++ .../integrity/ima/tests/ima_measurements.sh | 23 +---- .../security/integrity/ima/tests/ima_setup.sh | 42 +++++---- .../integrity/ima/tests/ima_violations.sh | 2 - testcases/lib/tst_test.sh | 2 +- 10 files changed, 211 insertions(+), 48 deletions(-) create mode 100644 testcases/kernel/security/integrity/ima/tests/README.md create mode 100755 testcases/kernel/security/integrity/ima/tests/evm_overlay.sh