Blame SOURCES/bind-9.16-redhat_doc.patch

b7523e
From 3a161af91bffcd457586ab466e32ac8484028763 Mon Sep 17 00:00:00 2001
b7523e
From: Petr Mensik <pemensik@redhat.com>
b7523e
Date: Wed, 17 Jun 2020 23:17:13 +0200
b7523e
Subject: [PATCH] Update man named with Red Hat specifics
b7523e
b7523e
This is almost unmodified text and requires revalidation. Some of those
b7523e
statements are no longer correct.
b7523e
---
b7523e
 bin/named/named.rst | 35 +++++++++++++++++++++++++++++++++++
b7523e
 1 file changed, 35 insertions(+)
b7523e
b7523e
diff --git a/bin/named/named.rst b/bin/named/named.rst
b7523e
index 6fd8f87..3cd6350 100644
b7523e
--- a/bin/named/named.rst
b7523e
+++ b/bin/named/named.rst
b7523e
@@ -228,6 +228,41 @@ Files
b7523e
 ``/var/run/named/named.pid``
b7523e
    The default process-id file.
b7523e
 
b7523e
+Notes
b7523e
+~~~~~
b7523e
+
b7523e
+**Red Hat SELinux BIND Security Profile:**
b7523e
+
b7523e
+By default, Red Hat ships BIND with the most secure SELinux policy
b7523e
+that will not prevent normal BIND operation and will prevent exploitation
b7523e
+of all known BIND security vulnerabilities. See the selinux(8) man page
b7523e
+for information about SElinux.
b7523e
+
b7523e
+It is not necessary to run named in a chroot environment if the Red Hat
b7523e
+SELinux policy for named is enabled. When enabled, this policy is far
b7523e
+more secure than a chroot environment. Users are recommended to enable
b7523e
+SELinux and remove the bind-chroot package.
b7523e
+
b7523e
+*With this extra security comes some restrictions:*
b7523e
+
b7523e
+By default, the SELinux policy does not allow named to write outside directory
b7523e
+/var/named. That directory used to be read-only for named, but write access is
b7523e
+enabled by default now.
b7523e
+
b7523e
+The "named" group must be granted read privelege to
b7523e
+these files in order for named to be enabled to read them.
b7523e
+Any file updated by named must be writeable by named user or named group.
b7523e
+
b7523e
+Any file created in the zone database file directory is automatically assigned
b7523e
+the SELinux file context *named_zone_t* .
b7523e
+
b7523e
+The Red Hat BIND distribution and SELinux policy creates three directories where
b7523e
+named were allowed to create and modify files: */var/named/slaves*, */var/named/dynamic*
b7523e
+*/var/named/data*. The service is able to write and file under */var/named* with appropriate
b7523e
+permissions. They are used for better organisation of zones and backward compatibility.
b7523e
+Files in these directories are automatically assigned the '*named_cache_t*'
b7523e
+file context, which SELinux always allows named to write.
b7523e
+
b7523e
 See Also
b7523e
 ~~~~~~~~
b7523e
 
b7523e
-- 
b7523e
2.26.2
b7523e