From patchwork Tue Apr 12 19:10:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Smalley X-Patchwork-Id: 8814541 Return-Path: X-Original-To: patchwork-selinux@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 72DB09F3D1 for ; Tue, 12 Apr 2016 19:12:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D453D2015A for ; Tue, 12 Apr 2016 19:12:50 +0000 (UTC) Received: from emvm-gh1-uea08.nsa.gov (smtp.nsa.gov [8.44.101.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC6DD2013D for ; Tue, 12 Apr 2016 19:12:49 +0000 (UTC) X-TM-IMSS-Message-ID: <2ef8569000016061@nsa.gov> Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by nsa.gov ([10.208.42.193]) with ESMTP (TREND IMSS SMTP Service 7.1) id 2ef8569000016061 ; Tue, 12 Apr 2016 15:10:23 -0400 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u3CJ9joC022539; Tue, 12 Apr 2016 15:09:58 -0400 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u3CJ9gD2184360 for ; Tue, 12 Apr 2016 15:09:42 -0400 Received: from moss-pluto.infosec.tycho.ncsc.mil (moss-pluto [192.168.25.131]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u3CJ9fr0022531; Tue, 12 Apr 2016 15:09:41 -0400 From: Stephen Smalley To: selinux@tycho.nsa.gov Subject: [PATCH] selinux-testsuite: Update README Date: Tue, 12 Apr 2016 15:10:29 -0400 Message-Id: <1460488229-16231-1-git-send-email-sds@tycho.nsa.gov> X-Mailer: git-send-email 2.5.5 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Cc: Stephen Smalley MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-TM-AS-MML: disable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update the package dependencies for the selinux testsuite and note that expand-check must be set to 0 for the test policy to build. Signed-off-by: Stephen Smalley --- README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README b/README index 1b38948..ba6c2c6 100644 --- a/README +++ b/README @@ -51,6 +51,7 @@ The testsuite has the following userspace dependencies on Fedora or RHEL beyond a minimal install: perl-Test # test harness used by the testsuite perl-Test-Harness # test harness used by the testsuite +perl-Test-Simple # for Test::More selinux-policy-devel # to build the test policy gcc # to build the test programs libselinux-devel # to build some of the test programs @@ -58,7 +59,7 @@ net-tools # for ifconfig, used by capable_net/test netlabel_tools # to load NetLabel configuration during inet_socket tests iptables # to load iptables SECMARK rules during inet_socket tests -yum install perl-Test perl-Test-Harness selinux-policy-devel gcc libselinux-devel net-tools netlabel_tools iptables +yum install perl-Test perl-Test-Harness perl-Test-Simple selinux-policy-devel gcc libselinux-devel net-tools netlabel_tools iptables The testsuite requires a pre-existing base policy configuration of SELinux, using either the old example policy or the reference policy @@ -88,6 +89,9 @@ Check whether the SELinux kernel is in enforcing mode by running 'getenforce'. If it is in permissive mode, toggle it into enforcing mode by running 'setenforce 1'. +Ensure that expand-check = 0 in /etc/selinux/semanage.conf; if not, +edit it accordingly. + To run the test suite, you can just do a 'make test' from the top-level directory or you can follow these broken-out steps: