From patchwork Wed Aug 24 12:39:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guido Trentalancia X-Patchwork-Id: 9297611 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 B3CDA60757 for ; Wed, 24 Aug 2016 12:40:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5792205AF for ; Wed, 24 Aug 2016 12:40:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99D2A280B0; Wed, 24 Aug 2016 12:40:30 +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]) (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 994D3205AF for ; Wed, 24 Aug 2016 12:40:29 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.28,570,1464652800"; d="scan'208";a="18711220" IronPort-PHdr: =?us-ascii?q?9a23=3AqrC08xFieOE6rsHj9bX1xp1GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ74psqwAkXT6L1XgUPTWs2DsrQf2rOQ6P6rBDdIoc7Y9itTKNoUD15NoP?= =?us-ascii?q?5VtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blIt?= =?us-ascii?q?dazLE4Lfx/66y/q1s8WKJV4Z3XzmP/gvd1329VyX7ZhOx9M6a+4Y8VjgmjNwYe?= =?us-ascii?q?NYxGdldxq4vi3XwYOOxqNl6DlaoPk79sRNAu3QdqU8SqFEXnx9azhmrPbzvBzj?= =?us-ascii?q?QAKD62EyU2gSnlJoDgHJ4QuyZZz2qCr8uaI9g3HbbvDsSfgIfRjqr+IyEF67wB?= =?us-ascii?q?sAYiU09GDRl9xYkLNQoBXnoQd2hYHTftK7Lv17K4zAfN8dDVZbU8BNXihIBIi9?= =?us-ascii?q?ZsNbAPcAMeFws5PwoUcHqRK4DgilQuXi1mkb1TfNwaQm3rF5Qkn91ws6EodU6H?= =?us-ascii?q?k=3D?= X-IPAS-Result: =?us-ascii?q?A2FlBQD9lL1X/wHyM5BdHoMLAQEBAQEegVK6AiOHSUwBAQE?= =?us-ascii?q?BAQEBAgECWyeCMgqCLQI3FCAOAwkCFycCCAgDAS0MCR8LBRgEiBEEv0+PDBEBa?= =?us-ascii?q?IUQBZlIkAmJCYVeAoxAg3lUgUMMgjBuhiGCHwEBAQ?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 24 Aug 2016 12:40:27 +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 u7OCe91X020199; Wed, 24 Aug 2016 08:40:13 -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 u7OCe7uX167457 for ; Wed, 24 Aug 2016 08:40:07 -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 u7OCe768020197 for ; Wed, 24 Aug 2016 08:40:07 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CzAQD9lL1XhycwWFFdKwQBAYJ4AQEBAQGBcKRZkSaEDRSIGgEBAQEBAQECEwEBAQgNCQkZhTqBCwIYDgI/M4g2nzePZZAzgQKPBII2gloFmUiQCY5nAoxAg3mCFwELV4FZbohAAQEB X-IPAS-Result: A1CzAQD9lL1XhycwWFFdKwQBAYJ4AQEBAQGBcKRZkSaEDRSIGgEBAQEBAQECEwEBAQgNCQkZhTqBCwIYDgI/M4g2nzePZZAzgQKPBII2gloFmUiQCY5nAoxAg3mCFwELV4FZbohAAQEB X-IronPort-AV: E=Sophos;i="5.28,570,1464667200"; d="scan'208";a="5662583" 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; 24 Aug 2016 08:40:06 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3ArmutIRxa6PLzPtHXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0OoUIJqq85mqBkHD//Il1AaPBtSCrakawLeN++C4ACpbsM7H6ChDOLV3FDY9wf?= =?us-ascii?q?0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5?= =?us-ascii?q?K6zPF5LIiIzvjqbpqsSVOFsD2WH1Iesrak7n9UOJ7oheqLAhA5558gHOrHpMdr?= =?us-ascii?q?Ye7kJTDnXXoSzB4Nyt9oVo6SVatqFp3cdBVaLnY/ZwFuQAX3wdK2kwxMDiuRTZ?= =?us-ascii?q?YwqC4ndUcmgfnhdSSzPO6wv7WJi58nCi97k15C7PJsDyTLYpSRy+/qxrT1nuky?= =?us-ascii?q?5BODkno0/Njcklo79arBXpmwZyxZLdZIiTP/t3NvfSYNIWQkJdRMtXSyVFC4W3?= =?us-ascii?q?boJJCecda7UL57LhrkcD+EPtTTKnA/nin2QQiw=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0GCAgD9lL1XhycwWFFdKgEEAQGCeAEBA?= =?us-ascii?q?QEBgXCkWZEmhA0UiBoBAQEBAQEBAgECEAEBAQgNCQkZL4IyCoJPgQsCGA4CPzO?= =?us-ascii?q?INp83j2WQM4ECjwSCNoJaBZlIkAmOZwKMQIN5ghcBC1eBWW6IQAEBAQ?= X-IPAS-Result: =?us-ascii?q?A0GCAgD9lL1XhycwWFFdKgEEAQGCeAEBAQEBgXCkWZEmhA0?= =?us-ascii?q?UiBoBAQEBAQEBAgECEAEBAQgNCQkZL4IyCoJPgQsCGA4CPzOINp83j2WQM4ECj?= =?us-ascii?q?wSCNoJaBZlIkAmOZwKMQIN5ghcBC1eBWW6IQAEBAQ?= X-IronPort-AV: E=Sophos;i="5.28,570,1464652800"; d="scan'208";a="16888012" Received: from authsmtp16.register.it (HELO authsmtp.register.it) ([81.88.48.39]) by emsm-gh1-uea10.nsa.gov with ESMTP/TLS/DHE-RSA-AES128-SHA; 24 Aug 2016 12:40:05 +0000 Received: from vortex.lan ([151.76.69.70]) by paganini32 with id b0fw1t00Z1Wy5Br010g35S; Wed, 24 Aug 2016 14:40:04 +0200 X-Rid: guido@trentalancia.net@151.76.69.70 Message-ID: <1472042396.4446.4.camel@trentalancia.net> Subject: [PATCH] Build the SELinux testsuite on systems using the Reference Policy From: Guido Trentalancia To: selinux@tycho.nsa.gov Date: Wed, 24 Aug 2016 14:39:56 +0200 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: