From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2AF9C433E2 for ; Wed, 9 Sep 2020 10:08:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37928215A4 for ; Wed, 9 Sep 2020 10:08:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=defensec.nl header.i=@defensec.nl header.b="D2RwvW4Y" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725948AbgIIKII (ORCPT ); Wed, 9 Sep 2020 06:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbgIIKIH (ORCPT ); Wed, 9 Sep 2020 06:08:07 -0400 X-Greylist: delayed 448 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 09 Sep 2020 03:08:06 PDT Received: from agnus.defensec.nl (agnus.defensec.nl [IPv6:2001:985:d55d::711]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 001FEC061573 for ; Wed, 9 Sep 2020 03:08:06 -0700 (PDT) Received: from localhost.localdomain (brutus.lan [IPv6:2001:985:d55d::438]) by agnus.defensec.nl (Postfix) with ESMTPSA id 0BF422A1003; Wed, 9 Sep 2020 12:00:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 agnus.defensec.nl 0BF422A1003 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=defensec.nl; s=default; t=1599645637; bh=MBIXJMDEAtEAhhJbDMNLmo7UOZ114X7s0WT0tVL1OW8=; h=From:To:Cc:Subject:Date:From; b=D2RwvW4Y9EVaiCoOjDL3LPFrF+tITTbR85VEK2hu0RlFtfWTqtPiou2KPWMPDR4gZ iXKLVnmXj4k1AfX4OvsPxeGHVcXmuJ1vSJm4M11vO5iosbRfLzKfD7/qP1s28DTYI+ i9Vwx431r+yc1u95x5LKsfo4rmXuP5nnu4RuwRlU= From: Dominick Grift To: selinux-refpolicy@vger.kernel.org Cc: Dominick Grift Subject: [PATCH] bind: add a few fc specs for unbound Date: Wed, 9 Sep 2020 12:00:26 +0200 Message-Id: <20200909100026.611987-1-dominick.grift@defensec.nl> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org unbound-checkconf is the unbound bind-checkconf equivalent unbound-control is the unbound bind ndc equivalent Signed-off-by: Dominick Grift --- These surfaced when I was helping someone on IRC to solve some issues. I figure I spent enough time on it for it to warrant a fix upstream. policy/modules/services/bind.fc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/policy/modules/services/bind.fc b/policy/modules/services/bind.fc index 7c1df489..ce68a0af 100644 --- a/policy/modules/services/bind.fc +++ b/policy/modules/services/bind.fc @@ -19,6 +19,8 @@ /usr/bin/named-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) /usr/bin/r?ndc -- gen_context(system_u:object_r:ndc_exec_t,s0) /usr/bin/unbound -- gen_context(system_u:object_r:named_exec_t,s0) +/usr/bin/unbound-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) +/usr/bin/unbound-control -- gen_context(system_u:object_r:ndc_exec_t,s0) /usr/lib/systemd/system/named.*\.service -- gen_context(system_u:object_r:named_unit_t,s0) /usr/lib/systemd/system/unbound.*\.service -- gen_context(system_u:object_r:named_unit_t,s0) @@ -28,6 +30,8 @@ /usr/sbin/named-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) /usr/sbin/r?ndc -- gen_context(system_u:object_r:ndc_exec_t,s0) /usr/sbin/unbound -- gen_context(system_u:object_r:named_exec_t,s0) +/usr/sbin/unbound-checkconf -- gen_context(system_u:object_r:named_checkconf_exec_t,s0) +/usr/sbin/unbound-control -- gen_context(system_u:object_r:ndc_exec_t,s0) /var/bind(/.*)? gen_context(system_u:object_r:named_cache_t,s0) /var/bind/pri(/.*)? gen_context(system_u:object_r:named_zone_t,s0) -- 2.28.0