diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 13:41:46 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 13:41:46 +0000 |
commit | b373ebf903f259c520d0767f07976389a6f92f74 (patch) | |
tree | 0ecee58642f486a9fdd83ab02f3e3b98875cb57a /0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch | |
parent | 4f8d731574eaa01a6386b1c4d4350067b31ed898 (diff) |
automatic import of bind-dyndb-ldapopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch')
-rw-r--r-- | 0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch b/0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch new file mode 100644 index 0000000..bbcfe7d --- /dev/null +++ b/0001-Modify-empty-zone-conflicts-under-exclusive-mode_rhbz#2129844.patch @@ -0,0 +1,35 @@ +From 7b4c1e28b3e64f7cd075599472e349510f8d33da Mon Sep 17 00:00:00 2001 +From: Petr Menšík <pemensik@redhat.com> +Date: Sep 14 2022 15:23:20 +0000 +Subject: 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 + +--- + +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); + |