SELinux-Refpolicy Archive mirror
 help / color / mirror / Atom feed
From: Dominick Grift <dominick.grift@defensec.nl>
To: selinux-refpolicy@vger.kernel.org
Cc: Dominick Grift <dominick.grift@defensec.nl>
Subject: [PATCH] bind: add a few fc specs for unbound
Date: Wed,  9 Sep 2020 12:00:26 +0200	[thread overview]
Message-ID: <20200909100026.611987-1-dominick.grift@defensec.nl> (raw)

unbound-checkconf is the unbound bind-checkconf equivalent
unbound-control is the unbound bind ndc equivalent

Signed-off-by: Dominick Grift <dominick.grift@defensec.nl>
---
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


             reply	other threads:[~2020-09-09 10:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09 10:00 Dominick Grift [this message]
2020-09-09 15:26 ` [PATCH] bind: add a few fc specs for unbound Chris PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200909100026.611987-1-dominick.grift@defensec.nl \
    --to=dominick.grift@defensec.nl \
    --cc=selinux-refpolicy@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).