]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3312. [bug] named-checkconf didn't detect a bad dns64 clients acl.
authorMark Andrews <marka@isc.org>
Thu, 26 Apr 2012 01:45:14 +0000 (11:45 +1000)
committerMark Andrews <marka@isc.org>
Thu, 26 Apr 2012 01:45:14 +0000 (11:45 +1000)
                        [RT #27631]

CHANGES
bin/tests/system/dns64/conf/bad7.conf [new file with mode: 0644]
bin/tests/system/dns64/conf/bad8.conf [new file with mode: 0644]
bin/tests/system/dns64/conf/bad9.conf [new file with mode: 0644]
lib/bind9/check.c

diff --git a/CHANGES b/CHANGES
index b9729b6d52fec3c597efcb84fcff0dd203ae0f88..b5a50e4184431c5ce12b40a09c342c44c8433472 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3312.  [bug]           named-checkconf didn't detect a bad dns64 clients acl.
+                       [RT #27631]
+
 3311.  [bug]           Abort the zone dump if zone->db is NULL in
                        zone.c:zone_gotwritehandle. [RT #29028]
 
diff --git a/bin/tests/system/dns64/conf/bad7.conf b/bin/tests/system/dns64/conf/bad7.conf
new file mode 100644 (file)
index 0000000..c3854ed
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/* $Id:$ */
+
+options {
+       dns64 FC36:EAFE:F993::/64 {
+               exclude { bogusacl; };
+       };
+};
diff --git a/bin/tests/system/dns64/conf/bad8.conf b/bin/tests/system/dns64/conf/bad8.conf
new file mode 100644 (file)
index 0000000..7b747ee
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/* $Id:$ */
+
+options {
+       dns64 FC36:EAFE:F993::/64 {
+               clients { bogusacl; };
+       };
+};
diff --git a/bin/tests/system/dns64/conf/bad9.conf b/bin/tests/system/dns64/conf/bad9.conf
new file mode 100644 (file)
index 0000000..262b5b9
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/* $Id:$ */
+
+options {
+       dns64 FC36:EAFE:F993::/64 {
+               mapped { bogusacl; };
+       };
+};
index af01ce09e37d675c10afccae1110ff5e561591e1..08d393ec0dd4d25dab9d8bb454b894f10f3a3f21 100644 (file)
@@ -434,7 +434,7 @@ check_dns64(cfg_aclconfctx_t *actx, const cfg_obj_t *voptions,
        int nbytes;
        int i;
 
-       static const char *acls[] = { "client", "exclude", "mapped", NULL};
+       static const char *acls[] = { "clients", "exclude", "mapped", NULL};
 
        if (voptions != NULL)
                cfg_map_get(voptions, "dns64", &dns64);