SELinux-Refpolicy Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] bind: add a few fc specs for unbound
@ 2020-09-09 10:00 Dominick Grift
  2020-09-09 15:26 ` Chris PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Dominick Grift @ 2020-09-09 10:00 UTC (permalink / raw)
  To: selinux-refpolicy; +Cc: Dominick Grift

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] bind: add a few fc specs for unbound
  2020-09-09 10:00 [PATCH] bind: add a few fc specs for unbound Dominick Grift
@ 2020-09-09 15:26 ` Chris PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2020-09-09 15:26 UTC (permalink / raw)
  To: Dominick Grift, selinux-refpolicy

On 9/9/20 6:00 AM, Dominick Grift wrote:
> 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)

Merged.

-- 
Chris PeBenito

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 10:00 [PATCH] bind: add a few fc specs for unbound Dominick Grift
2020-09-09 15:26 ` Chris PeBenito

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org
	public-inbox-index selinux-refpolicy

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git