From patchwork Wed Aug 24 14:12:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guido Trentalancia X-Patchwork-Id: 9297941 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A15160757 for ; Wed, 24 Aug 2016 14:14:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B5B029038 for ; Wed, 24 Aug 2016 14:14:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EBE42904F; Wed, 24 Aug 2016 14:14:29 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from emsm-gh1-uea11.nsa.gov (smtp.nsa.gov [8.44.101.9]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 304D729038 for ; Wed, 24 Aug 2016 14:14:25 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.28,570,1464652800"; d="scan'208";a="18716033" IronPort-PHdr: =?us-ascii?q?9a23=3AYXZFsR/Pme037P9uRHKM819IXTAuvvDOBiVQ1KB8?= =?us-ascii?q?0uwcTK2v8tzYMVDF4r011RmSDNydsKwP1LOe8/i5HzdRudDZ6DFKWacPfidNsd?= =?us-ascii?q?8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4?= =?us-ascii?q?bt74BpTVx5zukbvjotuIPU4X3XL9Oeo0d0Tu612J94E/ushLEu4J0BzHo39FKa?= =?us-ascii?q?x95FhDAhatpSv6/dq655V58i5d6LoL/s9EVrjmLexjFeQLRA8+OmUV6cTnuAPt?= =?us-ascii?q?TAaL6jM8X2wanwAAOAPC9hD8Ud+x6XO75ddn3GGmGeG+DfVtAXXxp5tsHQTljC?= =?us-ascii?q?YBKi4R7HDciss2irlS5h2muU9R2YnRNa6INfZ5Np/HcNUGTG5IWM1QXmQVDZ69?= =?us-ascii?q?Y4wnE/AMO/pRq4D7rFoH6x2zGV//V6vU1jZUiyqujuUB2OM7HFSchAE=3D?= X-IPAS-Result: =?us-ascii?q?A2FbBQA7q71X/wHyM5BdHQGDCwEBAQEBHoFSugIjh0tMAQE?= =?us-ascii?q?BAQEBAQIBAlsngjIKgiYCBAECNxQgDgMJAQEXJwIICAMBLQwJEQ4LBRgEiBEEv?= =?us-ascii?q?zSPDBEBaIUQBZlIkAmJCYVgjECDeVSDf26GIYIfAQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 24 Aug 2016 14:13:45 +0000 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 u7OEDgfk031625; Wed, 24 Aug 2016 10:13:43 -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 u7OECXr9169128 for ; Wed, 24 Aug 2016 10:12:33 -0400 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u7OECXob031571 for ; Wed, 24 Aug 2016 10:12:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CzAQAeqr1XhzYwWFFdLwGCeQEBAQEBgXCkWZEmhA2GHQKCEQEBAQEBAQECEwEBAQgNCQkZhRECAQMjZiUCGA4CAj0aGYg2rnuQAwEwgQKPBII2gloFmUiQCY5pjECDeYJ6gVluiEABAQE X-IPAS-Result: A1CzAQAeqr1XhzYwWFFdLwGCeQEBAQEBgXCkWZEmhA2GHQKCEQEBAQEBAQECEwEBAQgNCQkZhRECAQMjZiUCGA4CAj0aGYg2rnuQAwEwgQKPBII2gloFmUiQCY5pjECDeYJ6gVluiEABAQE X-IronPort-AV: E=Sophos;i="5.28,570,1464667200"; d="scan'208";a="5662909" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 24 Aug 2016 10:12:31 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3A/+xlVR+ZIVNeMf9uRHKM819IXTAuvvDOBiVQ1KB8?= =?us-ascii?q?0+gcTK2v8tzYMVDF4r011RmSDNydsKwP1LOe8/i5HzdRudDZ6DFKWacPfidNsd?= =?us-ascii?q?8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4?= =?us-ascii?q?bt74BpTVx5zukbvjotuIPU4X3XL9Oeo0d0Tu612J94E/ushLEu4J0BzHo39FKa?= =?us-ascii?q?x95FhDAhatpSv6/dq655V58i5d6LoL/s9EVrjmLexjFeQLRA8+OmUV6cTnuAPt?= =?us-ascii?q?TAaL6jM8X2wanwAAOAPC9hD8Ud+x6XO75aJB33yBMMn3S60kcSiz5KdsDhnzgW?= =?us-ascii?q?EIMCBq3nvQj5lfkaNXp1qdvRF534fQaYeeNfM2KqzAfN8dbXZbU8BNXihIBIi9?= =?us-ascii?q?Zs0JAvZXbrUQlJX0u1Zb9Uj2PgKrHu66kWdF?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0FRAgAeqr1XhzYwWFFdLwGCeQEBAQEBg?= =?us-ascii?q?XCkWZEmhA2GHQKCEQEBAQEBAQECAQIQAQEBCA0JCRkvgjIKgiYCAQMjZiUCGA4?= =?us-ascii?q?CAj0aGYg2rnuQAwEwgQKPBII2gloFmUiQCY5pjECDeYJ6gVluiEABAQE?= X-IPAS-Result: =?us-ascii?q?A0FRAgAeqr1XhzYwWFFdLwGCeQEBAQEBgXCkWZEmhA2GHQK?= =?us-ascii?q?CEQEBAQEBAQECAQIQAQEBCA0JCRkvgjIKgiYCAQMjZiUCGA4CAj0aGYg2rnuQA?= =?us-ascii?q?wEwgQKPBII2gloFmUiQCY5pjECDeYJ6gVluiEABAQE?= X-IronPort-AV: E=Sophos;i="5.28,570,1464652800"; d="scan'208";a="18715870" Received: from authsmtp04.register.it (HELO authsmtp.register.it) ([81.88.48.54]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES128-SHA; 24 Aug 2016 14:12:26 +0000 Received: from vortex.lan ([151.76.69.70]) by paganini31 with id b2CP1t00P1Wy5Br012CPVn; Wed, 24 Aug 2016 16:12:24 +0200 X-Rid: guido@trentalancia.net@151.76.69.70 Message-ID: <1472047943.4446.9.camel@trentalancia.net> Subject: [PATCH v2] Build the SELinux testsuite on systems using the Reference Policy From: Guido Trentalancia To: selinux@tycho.nsa.gov Date: Wed, 24 Aug 2016 16:12:23 +0200 In-Reply-To: <1472042396.4446.4.camel@trentalancia.net> References: <1472042396.4446.4.camel@trentalancia.net> X-Mailer: Evolution 3.20.5 Mime-Version: 1.0 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: Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Fix the Makefile in the policy subdirectory of the SELinux testsuite so that it builds correctly on the standard Reference Policy which does not have the same booleans available on Red Hat. Signed-off-by: Guido Trentalancia --- policy/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- selinux-testsuite-git-23082016-orig/policy/Makefile 2016-08-23 20:50:08.527633728 +0200 +++ selinux-testsuite-git-23082016/policy/Makefile 2016-08-24 14:38:08.987455031 +0200 @@ -68,7 +68,7 @@ load_rhel: all load_general: all # General policy load - /usr/sbin/setsebool allow_domain_fd_use=0 + /usr/sbin/getsebool -a | grep -q allow_domain_fd_use && /usr/sbin/setsebool allow_domain_fd_use=0 || : $(SEMODULE) -i test_policy/test_policy.pp unload_rhel: @@ -77,7 +77,7 @@ unload_rhel: unload_general: # General policy unload - /usr/sbin/setsebool allow_domain_fd_use=1 + /usr/sbin/getsebool -a | grep -q allow_domain_fd_use && /usr/sbin/setsebool allow_domain_fd_use=1 || : $(SEMODULE) -r test_policy clean: