Blame SOURCES/bind-9.16-redhat_doc.patch

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