|
|
76074c |
From 3a161af91bffcd457586ab466e32ac8484028763 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 |
---
|
|
|
76074c |
bin/named/named.rst | 35 +++++++++++++++++++++++++++++++++++
|
|
|
76074c |
1 file changed, 35 insertions(+)
|
|
|
b8ccda |
|
|
|
b8ccda |
diff --git a/bin/named/named.rst b/bin/named/named.rst
|
|
|
76074c |
index 6fd8f87..3cd6350 100644
|
|
|
b8ccda |
--- a/bin/named/named.rst
|
|
|
b8ccda |
+++ b/bin/named/named.rst
|
|
|
76074c |
@@ -228,6 +228,41 @@ 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
|
|
|
76074c |
+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 |
+
|
|
|
76074c |
+By default, the SELinux policy does not allow named to write outside directory
|
|
|
76074c |
+/var/named. That directory used to be read-only for named, but write access is
|
|
|
76074c |
+enabled by default now.
|
|
|
b8ccda |
+
|
|
|
b8ccda |
+The "named" group must be granted read privelege to
|
|
|
b8ccda |
+these files in order for named to be enabled to read them.
|
|
|
76074c |
+Any file updated by named must be writeable by named user or named group.
|
|
|
b8ccda |
+
|
|
|
b8ccda |
+Any file created in the zone database file directory is automatically assigned
|
|
|
b8ccda |
+the SELinux file context *named_zone_t* .
|
|
|
b8ccda |
+
|
|
|
b8ccda |
+The Red Hat BIND distribution and SELinux policy creates three directories where
|
|
|
76074c |
+named were allowed to create and modify files: */var/named/slaves*, */var/named/dynamic*
|
|
|
76074c |
+*/var/named/data*. The service is able to write and file under */var/named* with appropriate
|
|
|
76074c |
+permissions. They are used for better organisation of zones and backward compatibility.
|
|
|
76074c |
+Files in these directories are automatically assigned the '*named_cache_t*'
|
|
|
76074c |
+file context, which SELinux always allows named to write.
|
|
|
b8ccda |
+
|
|
|
b8ccda |
See Also
|
|
|
b8ccda |
~~~~~~~~
|
|
|
b8ccda |
|
|
|
b8ccda |
--
|
|
|
b8ccda |
2.26.2
|
|
|
b8ccda |
|