b8ccda
From 86fd25f3f0c5189fa93e10c6afa1a1cffe639ade Mon Sep 17 00:00:00 2001
b8ccda
From: Petr Mensik <pemensik@redhat.com>
b8ccda
Date: Wed, 17 Jun 2020 23:17:13 +0200
b8ccda
Subject: [PATCH] Update man named with Red Hat specifics
b8ccda
b8ccda
This is almost unmodified text and requires revalidation. Some of those
b8ccda
statements are no longer correct.
b8ccda
---
b8ccda
 bin/named/named.rst | 49 +++++++++++++++++++++++++++++++++++++++++++++
b8ccda
 1 file changed, 49 insertions(+)
b8ccda
b8ccda
diff --git a/bin/named/named.rst b/bin/named/named.rst
b8ccda
index 3c54a67..c44b6d7 100644
b8ccda
--- a/bin/named/named.rst
b8ccda
+++ b/bin/named/named.rst
b8ccda
@@ -228,6 +228,55 @@ Files
b8ccda
 ``/var/run/named/named.pid``
b8ccda
    The default process-id file.
b8ccda
 
b8ccda
+Notes
b8ccda
+~~~~~
b8ccda
+
b8ccda
+**Red Hat SELinux BIND Security Profile:**
b8ccda
+
b8ccda
+By default, Red Hat ships BIND with the most secure SELinux policy
b8ccda
+that will not prevent normal BIND operation and will prevent exploitation
b8ccda
+of all known BIND security vulnerabilities . See the selinux(8) man page
b8ccda
+for information about SElinux.
b8ccda
+
b8ccda
+It is not necessary to run named in a chroot environment if the Red Hat
b8ccda
+SELinux policy for named is enabled. When enabled, this policy is far
b8ccda
+more secure than a chroot environment. Users are recommended to enable
b8ccda
+SELinux and remove the bind-chroot package.
b8ccda
+
b8ccda
+*With this extra security comes some restrictions:*
b8ccda
+
b8ccda
+By default, the SELinux policy does not allow named to write any master
b8ccda
+zone database files. Only the root user may create files in the $ROOTDIR/var/named
b8ccda
+zone database file directory (the options { "directory" } option), where
b8ccda
+$ROOTDIR is set in /etc/sysconfig/named.
b8ccda
+
b8ccda
+The "named" group must be granted read privelege to
b8ccda
+these files in order for named to be enabled to read them.
b8ccda
+
b8ccda
+Any file created in the zone database file directory is automatically assigned
b8ccda
+the SELinux file context *named_zone_t* .
b8ccda
+
b8ccda
+By default, SELinux prevents any role from modifying *named_zone_t* files; this
b8ccda
+means that files in the zone database directory cannot be modified by dynamic
b8ccda
+DNS (DDNS) updates or zone transfers.
b8ccda
+
b8ccda
+The Red Hat BIND distribution and SELinux policy creates three directories where
b8ccda
+named is allowed to create and modify files: */var/named/slaves*, */var/named/dynamic*
b8ccda
+*/var/named/data*. By placing files you want named to modify, such as
b8ccda
+slave or DDNS updateable zone files and database / statistics dump files in
b8ccda
+these directories, named will work normally and no further operator action is
b8ccda
+required. Files in these directories are automatically assigned the '*named_cache_t*'
b8ccda
+file context, which SELinux allows named to write.
b8ccda
+
b8ccda
+**Red Hat BIND SDB support:**
b8ccda
+
b8ccda
+Red Hat ships named with compiled in Simplified Database Backend modules that ISC
b8ccda
+provides in the "contrib/sdb" directory. Install **bind-sdb** package if you want use them
b8ccda
+
b8ccda
+The SDB modules for LDAP, PostGreSQL, DirDB and SQLite are compiled into *named-sdb*.
b8ccda
+
b8ccda
+See the documentation for the various SDB modules in /usr/share/doc/bind-sdb-*/ .
b8ccda
+
b8ccda
 See Also
b8ccda
 ~~~~~~~~
b8ccda
 
b8ccda
-- 
b8ccda
2.26.2
b8ccda