Import rpm: 02a1b02c7f171125a91421af2fe57cca2c831b94
This commit is contained in:
parent
0fb777cc70
commit
0f627e4c69
@ -0,0 +1,37 @@
|
|||||||
|
From 7b4c1e28b3e64f7cd075599472e349510f8d33da Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
|
||||||
|
Date: Wed, 14 Sep 2022 17:10:11 +0200
|
||||||
|
Subject: [PATCH] Modify empty zone conflicts under exclusive mode
|
||||||
|
|
||||||
|
Does not accept new request when exclusive mode is active. Zone table
|
||||||
|
can be modified even after main fwd entries have been added. Ensure
|
||||||
|
empty zones handling keeps exclusive mode active.
|
||||||
|
|
||||||
|
Exclusive mode were mentioned as the only protection it had by bind
|
||||||
|
maintainer:
|
||||||
|
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/6637#note_308928
|
||||||
|
---
|
||||||
|
src/fwd.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/fwd.c b/src/fwd.c
|
||||||
|
index 24f6e53..0a3c673 100644
|
||||||
|
--- a/src/fwd.c
|
||||||
|
+++ b/src/fwd.c
|
||||||
|
@@ -595,10 +595,12 @@ fwd_configure_zone(const settings_set_t *set, ldap_instance_t *inst,
|
||||||
|
dns_result_totext(result));
|
||||||
|
|
||||||
|
/* Handle collisions with automatic empty zones. */
|
||||||
|
- if (isconfigured == true)
|
||||||
|
+ if (isconfigured == true) {
|
||||||
|
+ run_exclusive_enter(inst, &lock_state);
|
||||||
|
CHECK(empty_zone_handle_conflicts(name,
|
||||||
|
view->zonetable,
|
||||||
|
(fwdpolicy == dns_fwdpolicy_first)));
|
||||||
|
+ }
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
run_exclusive_exit(inst, lock_state);
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
10
0002-add-rwlock-before-include-zt-h.patch
Normal file
10
0002-add-rwlock-before-include-zt-h.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- a/src/zone_register.h 2020-09-14 11:11:52.000000000 -0400
|
||||||
|
+++ a/src/zone_register.h 2022-10-11 10:01:35.293730147 -0400
|
||||||
|
@@ -5,6 +5,7 @@
|
||||||
|
#ifndef _LD_ZONE_REGISTER_H_
|
||||||
|
#define _LD_ZONE_REGISTER_H_
|
||||||
|
|
||||||
|
+#include <isc/rwlock.h>
|
||||||
|
#include <dns/zt.h>
|
||||||
|
|
||||||
|
#include "settings.h"
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: bind-dyndb-ldap
|
Name: bind-dyndb-ldap
|
||||||
Version: 11.6
|
Version: 11.6
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: LDAP back-end plug-in for BIND
|
Summary: LDAP back-end plug-in for BIND
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -20,6 +20,9 @@ URL: https://releases.pagure.org/bind-dyndb-ldap
|
|||||||
Source0: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2
|
Source0: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2
|
||||||
Source1: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2.asc
|
Source1: https://releases.pagure.org/%{name}/%{name}-%{VERSION}.tar.bz2.asc
|
||||||
|
|
||||||
|
Patch0001: 0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2133036.patch
|
||||||
|
Patch0002: 0002-add-rwlock-before-include-zt-h.patch
|
||||||
|
|
||||||
BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version}, bind-pkcs11-devel >= %{bind_version}
|
BuildRequires: bind-devel >= %{bind_version}, bind-lite-devel >= %{bind_version}, bind-pkcs11-devel >= %{bind_version}
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
@ -42,6 +45,10 @@ off of your LDAP server.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{VERSION}
|
%setup -q -n %{name}-%{VERSION}
|
||||||
|
|
||||||
|
for p in %patches; do
|
||||||
|
%__patch -p1 -i $p
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
%configure
|
%configure
|
||||||
@ -107,6 +114,10 @@ sed -i.bak -e "$SEDSCRIPT" /etc/named.conf
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 13 2022 Rafael Jeffman <rjeffman@redhat.com> - 11.6-4
|
||||||
|
- Modify empty zone conflicts under exclusive mode
|
||||||
|
Resolves: rhbz#2126877
|
||||||
|
|
||||||
* Wed Dec 22 2021 Alexander Bokovoy <abokovoy@redhat.com> - 11.6-3
|
* Wed Dec 22 2021 Alexander Bokovoy <abokovoy@redhat.com> - 11.6-3
|
||||||
- Rebuild against bind 9.11.36
|
- Rebuild against bind 9.11.36
|
||||||
- Resolves: rhbz#2022762
|
- Resolves: rhbz#2022762
|
||||||
|
Loading…
Reference in New Issue
Block a user