From patchwork Fri Aug 26 17:50:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guido Trentalancia X-Patchwork-Id: 9301853 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 2CFD1607EE for ; Fri, 26 Aug 2016 17:51:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23CE02962D for ; Fri, 26 Aug 2016 17:51:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 182A129648; Fri, 26 Aug 2016 17:51:32 +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 6A0482962D for ; Fri, 26 Aug 2016 17:51:31 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.28,581,1464652800"; d="scan'208";a="18792369" IronPort-PHdr: =?us-ascii?q?9a23=3AMKiv+hfnU6zomIEgCZBMp8C9lGMj4u6mDksu8pMi?= =?us-ascii?q?zoh2WeGdxc+/YR7h7PlgxGXEQZ/co6odzbGH6ua8ASdZucjJ8ChbNscdD1ld0Y?= =?us-ascii?q?RetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9?= =?us-ascii?q?fbytScbshsi6n9q/54fUK10RwmHsOPUudF7v9VuZ9pFPx9AzcuBpklqBi0ALUt?= =?us-ascii?q?we/XlvK1OXkkS0zeaL17knzR5tvek8/dVLS6TwcvdwZ7VZCDM7LzJ9v5Wz5lH4?= =?us-ascii?q?VQKKxnYVXmgMvBtFBwSNzBzzUprr+hDxsfB83ibSfZauDOMJQzDq04NHAF+t0X?= =?us-ascii?q?9GZHYF9zTslsFojK9d6Cmkrhh7zp+cNJqZL9Jib6jdepUcXmMHUcFPAWgJGY64?= =?us-ascii?q?bo0SH8IdLO1YqM/7vFJIohygVie2A+a65SJJini+4bc31fgoFQjA1w0pV4YBrX?= =?us-ascii?q?XYq/3pLqoUTemxxa/DzDyFaf5Kj2SuoLPUewws9KnfFYl7dtDcnBN3Gg=3D=3D?= X-IPAS-Result: =?us-ascii?q?A2HmBQCsgMBX/wHyM5BdHhmDCgEBAQEBHoFSuh0jh1RMAQE?= =?us-ascii?q?BAQEBAQECAQJbJ4IyCoImAgQBAjcUIA4DCQEBFwEmAggIAwEtDAkRBgEHCwUYB?= =?us-ascii?q?IgXBL9jDCWPDREBhXgFmUyQEIkKhWGMQ4N5VIQeboQtgh8BAQE?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 26 Aug 2016 17:51:19 +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 u7QHoTZm017475; Fri, 26 Aug 2016 13:50:48 -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 u7QHoRuo233880 for ; Fri, 26 Aug 2016 13:50:27 -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 u7QHoQfN017468 for ; Fri, 26 Aug 2016 13:50:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1AEAwBDgMBXh0o2WFFdMIMRAQEBAQGBcKRwkSeEEIYdAoIaAQEBAQEBAQECEwEBAQgNCQkZhRECAQMjZhkMAhgOAgI9GgYBEog8sCiPOQEBCAEBAQEjgQOROoJaBZlMkBCOa4xDg3mDGYFZboZMAQEB X-IPAS-Result: A1AEAwBDgMBXh0o2WFFdMIMRAQEBAQGBcKRwkSeEEIYdAoIaAQEBAQEBAQECEwEBAQgNCQkZhRECAQMjZhkMAhgOAgI9GgYBEog8sCiPOQEBCAEBAQEjgQOROoJaBZlMkBCOa4xDg3mDGYFZboZMAQEB X-IronPort-AV: E=Sophos;i="5.28,581,1464667200"; d="scan'208";a="5667645" Received: from emsm-gh1-uea10.corp.nsa.gov (HELO emsm-gh1-uea10.nsa.gov) ([10.208.41.36]) by goalie.tycho.ncsc.mil with ESMTP; 26 Aug 2016 13:50:26 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3Ab/0fMRPi7Hp9EaVuCUol6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0Kfj6rarrMEGX3/hxlliBBdydsKMdzbaO+Pm4ByRAuc/H6yFaNsQUFlcsso?= =?us-ascii?q?Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVIm?= =?us-ascii?q?btr8FoOatcmrzef6o8SVOFQRwmblKuoqcl329VyX7ZhOx9M6a+4Y8VjgmjNwYe?= =?us-ascii?q?NYxGdldxq4vi3XwYOOxqNl6DlaoPk79sRNAu3QdqU8SqFEXnx9azhmrPbzvBzj?= =?us-ascii?q?QAKD62EyU2gSnlJoDgHJ4QuyZZz2qCr8uaI9g3HbboXKSuUPRTm676ptACTtgS?= =?us-ascii?q?MDOi9xpHrbkeRsnalbp1SnvBU5zInKNsXdL/d6f6XAbfsGVGFBWYBXTCUHDYSi?= =?us-ascii?q?PKUVCO9UEvtZo461m0EDqwe3AQCqD+LmgmtHm3762oUmyeknDQjC1QorHttItn?= =?us-ascii?q?nI+oamfJwOWPy4mfGbhQ7IaOlbjGyl5Q=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0HpAgCsgMBXh0o2WFFdN4MKAQEBAQGBc?= =?us-ascii?q?KRwkSeEEIYdAoIaAQEBAQEBAQECAQIQAQEBCA0JCRkvgjIKgiYCAQMjZhkMAhg?= =?us-ascii?q?OAgI9GgYBEog8sCqPOQEBCAEBAQEjgQOROoJaBZlMkBCOa4xDg3mDGYFZboZMA?= =?us-ascii?q?QEB?= X-IPAS-Result: =?us-ascii?q?A0HpAgCsgMBXh0o2WFFdN4MKAQEBAQGBcKRwkSeEEIYdAoI?= =?us-ascii?q?aAQEBAQEBAQECAQIQAQEBCA0JCRkvgjIKgiYCAQMjZhkMAhgOAgI9GgYBEog8s?= =?us-ascii?q?CqPOQEBCAEBAQEjgQOROoJaBZlMkBCOa4xDg3mDGYFZboZMAQEB?= X-IronPort-AV: E=Sophos;i="5.28,581,1464652800"; d="scan'208";a="16991566" Received: from authsmtp33.register.it (HELO authsmtp.register.it) ([81.88.54.74]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES128-SHA; 26 Aug 2016 17:50:22 +0000 Received: from vortex.lan ([151.76.69.70]) by paganini31 with id btqL1t00N1Wy5Br01tqLSn; Fri, 26 Aug 2016 19:50:21 +0200 X-Rid: guido@trentalancia.net@151.76.69.70 Message-ID: <1472233820.14055.1.camel@trentalancia.net> Subject: [PATCH v4] 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 19:50:20 +0200 In-Reply-To: <0957f1f6-2687-6dd0-b42d-e92f6d5ce21b@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> 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-26 19:37:13.195088500 +0200 @@ -68,7 +69,7 @@ load_rhel: all load_general: all # General policy load - /usr/sbin/setsebool allow_domain_fd_use=0 + /usr/sbin/getsebool allow_domain_fd_use > /dev/null 2&>1 && /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/getsebool allow_domain_fd_use > /dev/null 2&>1 && /usr/sbin/setsebool allow_domain_fd_use=1 || : $(SEMODULE) -r test_policy clean: