From patchwork Tue Nov 3 11:01:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Haines X-Patchwork-Id: 11877117 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 848316A2 for ; Tue, 3 Nov 2020 11:01:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5B5A4208B6 for ; Tue, 3 Nov 2020 11:01:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=btinternet.com header.i=@btinternet.com header.b="oqxjjNBr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbgKCLBx (ORCPT ); Tue, 3 Nov 2020 06:01:53 -0500 Received: from mailomta14-re.btinternet.com ([213.120.69.107]:64342 "EHLO re-prd-fep-045.btinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727068AbgKCLBw (ORCPT ); Tue, 3 Nov 2020 06:01:52 -0500 Received: from re-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.54.7]) by re-prd-fep-045.btinternet.com with ESMTP id <20201103110145.ETVZ30806.re-prd-fep-045.btinternet.com@re-prd-rgout-004.btmx-prd.synchronoss.net>; Tue, 3 Nov 2020 11:01:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btmx201904; t=1604401305; bh=KwN9BB2P5GAsvhns1wp6UQgZ3tGaRZNZ3pdHAH30DJo=; h=From:To:Cc:Subject:Date:Message-Id:X-Mailer:MIME-Version; b=oqxjjNBrBBwY4Eetjr27RIPOf/v8QhO2Sp07nGaTrIcBsu6lHkbZ+8+NrvwrADdB8ey2PUE4WpHpC7kOtd6sLd2A/cJYo39phBQGARuXckMhLEo41UKLmZ41FE9nnWY0R5hxLgdDMUgkIqe7dHgV9t4hMN6WIlYXoxDjm3aEnXJwGxwRB0b26KeKpL26npiWXGqCe5gH4xS6mgJ8GNHji1yLTRNaZjjRydJaBHIbGyMSZSh/yF80zDCjHIKKNqCVZOM5GjBHl7VWnhAo4CMrFbaADFHz7tNNm/gTAMKQRI3z5S8cfWCS7fo9EzCp4KtorxXQq0wA22vRg3elqBrehg== Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=richard_c_haines@btinternet.com X-SNCR-Rigid: 5ED9C5061891693E X-Originating-IP: [86.148.106.153] X-OWM-Source-IP: 86.148.106.153 (GB) X-OWM-Env-Sender: richard_c_haines@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedujedruddtfedgvdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeftihgthhgrrhguucfjrghinhgvshcuoehrihgthhgrrhgupggtpghhrghinhgvshessghtihhnthgvrhhnvghtrdgtohhmqeenucggtffrrghtthgvrhhnpeeufeefudfffeetjeevheetvdekueeuvefftdfgkefgtefgkeegieehveeuhedvffenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecukfhppeekiedrudegkedruddtiedrudehfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehlohgtrghlhhhoshhtrdhlohgtrghlughomhgrihhnpdhinhgvthepkeeirddugeekrddutdeirdduheefpdhmrghilhhfrhhomhepoehrihgthhgrrhgupggtpghhrghinhgvshessghtihhnthgvrhhnvghtrdgtohhmqedprhgtphhtthhopeeorhhitghhrghruggptggphhgrihhnvghssegsthhinhhtvghrnhgvthdrtghomhequcfqtfevrffvpehrfhgtkedvvdenrhhitghhrghruggptggphhgrihhnvghssegsthhinhhtvghrnhgvthdrtghomhdprhgtphhtthhopeeoshgvlhhinhhugiesvhhgvghrrdhkvghrnhgvlhdrohhrgheq X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-SNCR-hdrdom: btinternet.com Received: from localhost.localdomain (86.148.106.153) by re-prd-rgout-004.btmx-prd.synchronoss.net (5.8.340) (authenticated as richard_c_haines@btinternet.com) id 5ED9C5061891693E; Tue, 3 Nov 2020 11:01:45 +0000 From: Richard Haines To: selinux@vger.kernel.org Cc: Richard Haines Subject: [PATCH V2 0/1] selinux-testsuite: Add btrfs support for filesystem tests Date: Tue, 3 Nov 2020 11:01:20 +0000 Message-Id: <20201103110121.53919-1-richard_c_haines@btinternet.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org This patch allows BTRFS filesystems to be tested. The tests/filesystem all pass using './test -f btrfs' on Fedora 33. The tests/fs_filesystem fail 42 of 57 using './test -f btrfs' on Fedora 33. These fs_filesystem failures are caused by a bug when using the fsmount(2) type calls that was reported in [1]. Note btrfs requires a much larger image size (min 115 MiB), and therefore takes more than 2x longer to run tests than ext4. [1] https://lore.kernel.org/selinux/c02674c970fa292610402aa866c4068772d9ad4e.camel@btinternet.com/ V2 changes: 1) Add btrfs-progs entries for README and travis. 2) Add CONFIG_BTRFS_FS=y to defconfig. 3) Support testing all valid filesystems. Richard Haines (1): selinux-testsuite: Add btrfs support for filesystem tests README.md | 3 +++ defconfig | 4 ++++ tests/Makefile | 2 +- tests/filesystem/Filesystem.pm | 10 +++++++++- tests/filesystem/btrfs | 1 + tests/filesystem/test | 6 ++++++ tests/fs_filesystem/btrfs | 1 + tests/fs_filesystem/test | 6 ++++++ travis-ci/run-testsuite.sh | 1 + 9 files changed, 32 insertions(+), 2 deletions(-) create mode 120000 tests/filesystem/btrfs create mode 120000 tests/fs_filesystem/btrfs