From patchwork Wed Mar 27 16:16:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 10873743 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 B24581390 for ; Wed, 27 Mar 2019 16:16:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C5B428C67 for ; Wed, 27 Mar 2019 16:16:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9056128C93; Wed, 27 Mar 2019 16:16:53 +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 312D228C67 for ; Wed, 27 Mar 2019 16:16:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbfC0QQw (ORCPT ); Wed, 27 Mar 2019 12:16:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:46386 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbfC0QQw (ORCPT ); Wed, 27 Mar 2019 12:16:52 -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 8531AAC7F; Wed, 27 Mar 2019 16:16:51 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Cc: Petr Vorel , Mimi Zohar , Ignaz Forster , Fabian Vogt , Weihua Du , linux-integrity@vger.kernel.org Subject: [PATCH 0/3] LTP reproducer on broken IMA on overlayfs Date: Wed, 27 Mar 2019 17:16:35 +0100 Message-Id: <20190327161638.7407-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, based on reproducer made by Ignaz Forster used for his not upstreamed patchset [1] and previous report [2]. Mimi: does this test make sense to you? [1] https://www.spinics.net/lists/linux-integrity/msg05926.html [2] https://www.spinics.net/lists/linux-integrity/msg03593.html Cc: Mimi Zohar Cc: Ignaz Forster Cc: Fabian Vogt Cc: Weihua Du Cc: linux-integrity@vger.kernel.org Petr Vorel (3): ima: Call test's cleanup inside ima_setup.sh cleanup shell: Add $TST_DEVICE as default parameter to tst_umount ima: Add overlay test doc/test-writing-guidelines.txt | 4 +- runtest/ima | 1 + testcases/commands/df/df01.sh | 7 +- testcases/commands/mkfs/mkfs01.sh | 2 +- .../integrity/ima/tests/ima_overlay.sh | 65 +++++++++++++++++++ .../security/integrity/ima/tests/ima_setup.sh | 12 ++-- .../integrity/ima/tests/ima_violations.sh | 2 - testcases/lib/tst_test.sh | 2 +- 8 files changed, 79 insertions(+), 16 deletions(-) create mode 100755 testcases/kernel/security/integrity/ima/tests/ima_overlay.sh