From patchwork Fri Aug 26 18:36:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guido Trentalancia X-Patchwork-Id: 9301901 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 47CD4607EE for ; Fri, 26 Aug 2016 18:38:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DA5B29634 for ; Fri, 26 Aug 2016 18:38:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3208E2964F; Fri, 26 Aug 2016 18:38:07 +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 (emsm-gh1-uea11.nsa.gov [8.44.101.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E1AC729634 for ; Fri, 26 Aug 2016 18:38:05 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.28,582,1464652800"; d="scan'208";a="18794225" IronPort-PHdr: =?us-ascii?q?9a23=3A7AWmvhUR5IJJAGdXGuabIyHEcjrV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYZxGCt8tkgFKBZ4jH8fUM07OQ6PG5HzBYqs/Y4DhCKMUKDE5dz5?= =?us-ascii?q?1O3kQJO42sMQXDNvnkbig3ToxpdWRO2DWFC3VTA9v0fFbIo3e/vnY4ExT7Mhdp?= =?us-ascii?q?dKyuQtaBx/q+2+36wZDPeQIA3GP7OuIraknu5lyI5oFW2dIkcfdpjEOR4zNhQK?= =?us-ascii?q?d//StQP1WdnhLxtI+b3aVI1GBugc8n7NNKSq7gfq41HvRyBTUiNH0ptoWw7UGQ?= =?us-ascii?q?BTCX7348X2wanwBmAgXB4FnaU579vzGyjeF6wiicMoW2Fuh1Cgm46+9XbDOgyG?= =?us-ascii?q?Jeb39quF3Q3/dsgbpbrRTpnBl2x4rZccnBL/ZlVr/MdtMdA2xaV4BeUDIXRsun?= =?us-ascii?q?Yo8OCfcRFfpJpIn64V0VpF2xAhf/Kvnoz2pnm3762uUGyeknDQjC1QorHttG5H?= =?us-ascii?q?vJrdnyHLsIXOapxa3Byz7CZrVQ1Curu9uASQwovfzZBeE4SsHW00R6TVvI?= X-IPAS-Result: =?us-ascii?q?A2HmBQBwi8BX/wHyM5BdHhmDCgEBAQEBHoFSuh0jh1ZMAQE?= =?us-ascii?q?BAQEBAQECAQJbJ4IyCoImAgQBAjcUIA4DCQEBFwEmAggIAwEtDAkRBgEHCwUYB?= =?us-ascii?q?IgXBMACjw0RAYV4BZlMkBCJCoVhjEODeVSCNByBTm6ELYIfAQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 26 Aug 2016 18:38:01 +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 u7QIahCH022635; Fri, 26 Aug 2016 14:37:09 -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 u7QIaeJf235737 for ; Fri, 26 Aug 2016 14:36:40 -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 u7QIabXr022627 for ; Fri, 26 Aug 2016 14:36:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1AFAwD6isBXhzQwWFFdLwEBgxABAQEBAYFwpHCRJ4QQhh0CghwBAQEBAQEBAQITAQEBCA0JCRmFEQIBAyNmGQwCGA4CAj0aBgESiDywIY84AQEIAiWBA5E6gloFmUyQEI5rjEODeYMIEQuBTm6GTAEBAQ X-IPAS-Result: A1AFAwD6isBXhzQwWFFdLwEBgxABAQEBAYFwpHCRJ4QQhh0CghwBAQEBAQEBAQITAQEBCA0JCRmFEQIBAyNmGQwCGA4CAj0aBgESiDywIY84AQEIAiWBA5E6gloFmUyQEI5rjEODeYMIEQuBTm6GTAEBAQ X-IronPort-AV: E=Sophos;i="5.28,582,1464667200"; d="scan'208";a="5667762" 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; 26 Aug 2016 14:36:39 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3AQJZdeRZHrTmykEZdXaZ3c2L/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZpMi7bnLW6fgltlLVR4KTs6sC0LuP9fy4EjVZsd7B6ClEK80UEUddyI?= =?us-ascii?q?0/pE8JOIa9E0r1LfrnPWQRPf9pcxtbxUy9KlVfA83kZlff8TWY5D8WHQjjZ0Iu?= =?us-ascii?q?frymUrDbg8n/7e2u4ZqbO1wO32vkJ+8qZ0zv/U2R7pBQ2to6bP5pi1PgmThhQ6?= =?us-ascii?q?xu32RmJFaezV7Xx/yb29pdyRlWoO8r7MVaUK/3LOwSRL1cCyk6YShuvJW4/SLb?= =?us-ascii?q?RA6v63IQX384kxdMD0Dl4Rj2U425iSD9rOt712HaZpW3HvgIXmGZ86pzSBLuwB?= =?us-ascii?q?wCPjo9/XCf3td8l4pHsRmhoFp52IeSb4aLYr42Za7ZfNUHVUJdT81RUGpHGYr6?= =?us-ascii?q?YIwRXMQbOuMNgJT8q1xGkQGzAxWlAOrpwT5Bziv5wKw21Mw9CwzAwAUkFtQFsX?= =?us-ascii?q?2SqtjpYvRBGdupxbXFmG2QJ8hd3i3wvdOQfw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0HpAgBwi8BXhzQwWFFdg0EBAQEBAYFwp?= =?us-ascii?q?HCRJ4QQhh0CghwBAQEBAQEBAQIBAhABAQEIDQkJGS+CMgqCJgIBAyNmGQwCGA4?= =?us-ascii?q?CAj0aBgESiDywGo83AQEIAiWBA5E6gloFmUyQEI5rjEODeYMIEQuBTm6GTAEBA?= =?us-ascii?q?Q?= X-IPAS-Result: =?us-ascii?q?A0HpAgBwi8BXhzQwWFFdg0EBAQEBAYFwpHCRJ4QQhh0Cghw?= =?us-ascii?q?BAQEBAQEBAQIBAhABAQEIDQkJGS+CMgqCJgIBAyNmGQwCGA4CAj0aBgESiDywG?= =?us-ascii?q?o83AQEIAiWBA5E6gloFmUyQEI5rjEODeYMIEQuBTm6GTAEBAQ?= X-IronPort-AV: E=Sophos;i="5.28,582,1464652800"; d="scan'208";a="18794186" Received: from authsmtp02.register.it (HELO authsmtp.register.it) ([81.88.48.52]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES128-SHA; 26 Aug 2016 18:36:31 +0000 Received: from vortex.lan ([151.76.69.70]) by paganini31 with id bucW1t00J1Wy5Br01ucWBM; Fri, 26 Aug 2016 20:36:30 +0200 X-Rid: guido@trentalancia.net@151.76.69.70 Message-ID: <1472236590.14055.3.camel@trentalancia.net> Subject: [PATCH v5] Build the SELinux testsuite on systems using the Reference Policy From: Guido Trentalancia To: Stephen Smalley , selinux@tycho.nsa.gov Date: Fri, 26 Aug 2016 20:36:30 +0200 In-Reply-To: <1ad0ffb1-fccf-d024-7bc1-62cfc4adc97b@tycho.nsa.gov> References: <1472042396.4446.4.camel@trentalancia.net> <1472047913.4446.7.camel@trentalancia.net> <1472233238.14055.0.camel@trentalancia.net> <0957f1f6-2687-6dd0-b42d-e92f6d5ce21b@tycho.nsa.gov> <1472233820.14055.1.camel@trentalancia.net> <1ad0ffb1-fccf-d024-7bc1-62cfc4adc97b@tycho.nsa.gov> 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 Sorry about that ! I did not test it properly because I was hitting a problem with the policy... The following one should work, although it's slightly noisy... 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. Previous versions were not working within the Makefile. 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-26 20:33:01.677418513 +0200 @@ -68,7 +69,7 @@ load_rhel: all load_general: all # General policy load - /usr/sbin/setsebool allow_domain_fd_use=0 + @-/usr/sbin/setsebool allow_domain_fd_use=0 $(SEMODULE) -i test_policy/test_policy.pp unload_rhel: @@ -77,7 +78,7 @@ unload_rhel: unload_general: # General policy unload - /usr/sbin/setsebool allow_domain_fd_use=1 + @-/usr/sbin/setsebool allow_domain_fd_use=1 $(SEMODULE) -r test_policy clean: