From b4c6ce22d08080b5959cd54d4d184383d37773df Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 26 May 2010 07:00:37 +0000 Subject: [PATCH 01/37] call sign.sh robustly --- bin/tests/system/dlv/ns3/sign.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/dlv/ns3/sign.sh b/bin/tests/system/dlv/ns3/sign.sh index b3990366c4..dc22b1d361 100755 --- a/bin/tests/system/dlv/ns3/sign.sh +++ b/bin/tests/system/dlv/ns3/sign.sh @@ -14,9 +14,9 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: sign.sh,v 1.7 2010/05/26 06:28:00 marka Exp $ +# $Id: sign.sh,v 1.8 2010/05/26 07:00:37 marka Exp $ -(cd ../ns6; ./sign.sh) +(cd ../ns6 && sh -e ./sign.sh) SYSTEMTESTTOP=../.. . $SYSTEMTESTTOP/conf.sh From 00f1c3f453dcc37e5e3e2be05807b31ca40cf7f6 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 26 May 2010 07:17:19 +0000 Subject: [PATCH 02/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 3f4e06c136..3c43eef686 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.255 2010/05/22 01:16:26 tbox Exp $ +# $Id: SRCID,v 1.256 2010/05/26 07:17:19 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/22 01:16:26 $ )" +SRCID="( $Date: 2010/05/26 07:17:19 $ )" From c1779801945f6b53351aa6e4ed6749ee64652ed2 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 26 May 2010 23:19:29 +0000 Subject: [PATCH 03/37] auto update --- doc/private/branches | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/private/branches b/doc/private/branches index 08bb35f41c..c5df257c5d 100644 --- a/doc/private/branches +++ b/doc/private/branches @@ -337,6 +337,7 @@ rt21198 new marka // 2010-05-05 06:41 +0000 rt21346 new marka // 2010-05-19 02:45 +0000 rt21364 new dhankins // 2010-05-25 22:56 +0000 rt21367 new marka // 2010-05-21 06:24 +0000 +rt21392 new marka // 2010-05-26 00:41 +0000 shane_dbbackend open skan open explorer skan-metazones1 private explorer From 9fa39c73fc1d8bc44fdbbb79a1d26b837e7dd555 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 26 May 2010 23:36:11 +0000 Subject: [PATCH 04/37] ./bin/tests/system/dlv/ns6/hints --- util/copyrights | 1 + 1 file changed, 1 insertion(+) diff --git a/util/copyrights b/util/copyrights index 8ba4f2619b..773071a743 100644 --- a/util/copyrights +++ b/util/copyrights @@ -646,6 +646,7 @@ ./bin/tests/system/dlv/ns5/hints ZONE 2004,2007 ./bin/tests/system/dlv/ns5/named.conf CONF-C 2004,2006,2007 ./bin/tests/system/dlv/ns5/rndc.conf CONF-C 2004,2007 +./bin/tests/system/dlv/ns6/hints ZONE 2010 ./bin/tests/system/dlv/setup.sh SH 2004,2007,2009 ./bin/tests/system/dlv/tests.sh SH 2004,2007 ./bin/tests/system/dnssec/README TXT.BRIEF 2000,2001,2002,2004 From 8e22c73f3ea64337926151b53245f61342fa52fa Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 26 May 2010 23:44:27 +0000 Subject: [PATCH 05/37] 2905. [port] aix: set use_atomic=yes with native compiler. [RT #21402] --- CHANGES | 3 +++ configure | 6 ++++-- configure.in | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index fbb4ebceb7..4c92129b62 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2905. [port] aix: set use_atomic=yes with native compiler. + [RT #21402] + 2904. [bug] When using DLV, sub-zones of the zones in the DLV, could be incorrectly marked as insecure instead of secure leading to negative proofs failing. This was diff --git a/configure b/configure index 937b735672..2469a21ada 100755 --- a/configure +++ b/configure @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # -# $Id: configure,v 1.476 2010/05/19 07:13:15 marka Exp $ +# $Id: configure,v 1.477 2010/05/26 23:44:27 marka Exp $ # # Portions Copyright (C) 1996-2001 Nominum, Inc. # @@ -29,7 +29,7 @@ # 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. -# From configure.in Revision: 1.493 . +# From configure.in Revision: 1.494 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.62. # @@ -32256,6 +32256,8 @@ fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + else + use_atomic=yes fi ;; *) diff --git a/configure.in b/configure.in index 6d8d769e2f..0a83f48939 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.493 $) +AC_REVISION($Revision: 1.494 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.59) @@ -2475,6 +2475,8 @@ case "$enable_atomic" in use_atomic=yes]) ] ) + else + use_atomic=yes fi ;; *) From 051dec6fb7ed9729ce979db6852e09c3eef227ef Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 26 May 2010 23:50:47 +0000 Subject: [PATCH 06/37] update copyright notice --- bin/tests/system/dlv/ns6/hints | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/dlv/ns6/hints b/bin/tests/system/dlv/ns6/hints index ecf0aac236..b2696f6ac0 100644 --- a/bin/tests/system/dlv/ns6/hints +++ b/bin/tests/system/dlv/ns6/hints @@ -1,4 +1,4 @@ -; Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") +; Copyright (C) 2010 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 @@ -12,7 +12,7 @@ ; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. -; $Id: hints,v 1.2 2010/05/26 06:28:00 marka Exp $ +; $Id: hints,v 1.3 2010/05/26 23:50:47 tbox Exp $ . 0 NS ns.rootservers.utld. ns.rootservers.utld. 0 A 10.53.0.1 From 529f589a83b3c824299b5d6bb1e850fdcbb63575 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 27 May 2010 00:20:41 +0000 Subject: [PATCH 07/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 3c43eef686..4a550937e8 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.256 2010/05/26 07:17:19 tbox Exp $ +# $Id: SRCID,v 1.257 2010/05/27 00:20:41 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/26 07:17:19 $ )" +SRCID="( $Date: 2010/05/27 00:20:41 $ )" From 2f34efede1858a0fec5b95f2c352c5764718aeef Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 27 May 2010 03:23:56 +0000 Subject: [PATCH 08/37] line length --- bin/named/xfrout.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/bin/named/xfrout.c b/bin/named/xfrout.c index 4cd88ab82c..57299d4b37 100644 --- a/bin/named/xfrout.c +++ b/bin/named/xfrout.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: xfrout.c,v 1.136 2009/06/30 02:52:32 each Exp $ */ +/* $Id: xfrout.c,v 1.137 2010/05/27 03:23:56 marka Exp $ */ #include @@ -810,11 +810,13 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) { #ifdef DLZ { /* - * Normal zone table does not have a match. Try the DLZ database + * Normal zone table does not have a match. + * Try the DLZ database */ if (client->view->dlzdatabase != NULL) { result = dns_dlzallowzonexfr(client->view, - question_name, &client->peeraddr, + question_name, + &client->peeraddr, &db); if (result == ISC_R_NOPERM) { @@ -1053,9 +1055,9 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) { #ifdef DLZ if (is_dlz) - CHECK(xfrout_ctx_create(mctx, client, request->id, question_name, - reqtype, question_class, zone, db, ver, - quota, stream, + CHECK(xfrout_ctx_create(mctx, client, request->id, + question_name, reqtype, question_class, + zone, db, ver, quota, stream, dns_message_gettsigkey(request), tsigbuf, 3600, @@ -1065,9 +1067,9 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) { &xfr)); else #endif - CHECK(xfrout_ctx_create(mctx, client, request->id, question_name, - reqtype, question_class, zone, db, ver, - quota, stream, + CHECK(xfrout_ctx_create(mctx, client, request->id, + question_name, reqtype, question_class, + zone, db, ver, quota, stream, dns_message_gettsigkey(request), tsigbuf, dns_zone_getmaxxfrout(zone), From 3718c6396e58470b854f75fa594345ba220919a3 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 27 May 2010 04:23:37 +0000 Subject: [PATCH 09/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 4a550937e8..2e0a7513d1 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.257 2010/05/27 00:20:41 tbox Exp $ +# $Id: SRCID,v 1.258 2010/05/27 04:23:37 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/27 00:20:41 $ )" +SRCID="( $Date: 2010/05/27 04:23:37 $ )" From ff4b3adaa4729564dd7ff798910ac701d76d8b87 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 27 May 2010 23:19:21 +0000 Subject: [PATCH 10/37] auto update --- doc/private/branches | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/private/branches b/doc/private/branches index c5df257c5d..58145baea0 100644 --- a/doc/private/branches +++ b/doc/private/branches @@ -338,6 +338,7 @@ rt21346 new marka // 2010-05-19 02:45 +0000 rt21364 new dhankins // 2010-05-25 22:56 +0000 rt21367 new marka // 2010-05-21 06:24 +0000 rt21392 new marka // 2010-05-26 00:41 +0000 +rt21394 new marka // 2010-05-27 00:51 +0000 shane_dbbackend open skan open explorer skan-metazones1 private explorer From 48b36fa08b2b5bc0d552dc2a4425b3f7007b3d59 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 27 May 2010 23:31:38 +0000 Subject: [PATCH 11/37] newcopyrights --- util/copyrights | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/util/copyrights b/util/copyrights index 773071a743..955216f89c 100644 --- a/util/copyrights +++ b/util/copyrights @@ -218,7 +218,7 @@ ./bin/named/win32/named.mak X 2001,2002,2004,2005,2006,2008,2009 ./bin/named/win32/ntservice.c C 1999,2000,2001,2002,2004,2006,2007,2009 ./bin/named/win32/os.c C 1999,2000,2001,2002,2004,2005,2007,2008,2009 -./bin/named/xfrout.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 +./bin/named/xfrout.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010 ./bin/named/zoneconf.c C 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 ./bin/nsupdate/.cvsignore X 2000,2001 ./bin/nsupdate/Makefile.in MAKE 2000,2001,2002,2004,2006,2007,2008,2009 @@ -628,27 +628,30 @@ ./bin/tests/system/dialup/setup.sh SH 2000,2001,2004,2007 ./bin/tests/system/dialup/tests.sh SH 2000,2001,2004,2007 ./bin/tests/system/digcomp.pl PERL 2000,2001,2004,2007 -./bin/tests/system/dlv/clean.sh SH 2004,2007 +./bin/tests/system/dlv/clean.sh SH 2004,2007,2010 ./bin/tests/system/dlv/ns1/named.conf CONF-C 2004,2007 ./bin/tests/system/dlv/ns1/root.db ZONE 2004,2007 ./bin/tests/system/dlv/ns1/rootservers.utld.db ZONE 2004,2007 ./bin/tests/system/dlv/ns2/hints ZONE 2004,2007 ./bin/tests/system/dlv/ns2/named.conf CONF-C 2004,2007 ./bin/tests/system/dlv/ns2/utld.db ZONE 2004,2007 -./bin/tests/system/dlv/ns3/child.db.in ZONE 2004,2007 +./bin/tests/system/dlv/ns3/child.db.in ZONE 2004,2007,2010 ./bin/tests/system/dlv/ns3/dlv.db.in ZONE 2004,2007 ./bin/tests/system/dlv/ns3/hints ZONE 2004,2007 ./bin/tests/system/dlv/ns3/named.conf CONF-C 2004,2007 -./bin/tests/system/dlv/ns3/sign.sh SH 2004,2007,2009 +./bin/tests/system/dlv/ns3/sign.sh SH 2004,2007,2009,2010 ./bin/tests/system/dlv/ns4/child.db ZONE 2004,2007 ./bin/tests/system/dlv/ns4/hints ZONE 2004,2007 ./bin/tests/system/dlv/ns4/named.conf CONF-C 2004,2007 ./bin/tests/system/dlv/ns5/hints ZONE 2004,2007 ./bin/tests/system/dlv/ns5/named.conf CONF-C 2004,2006,2007 ./bin/tests/system/dlv/ns5/rndc.conf CONF-C 2004,2007 +./bin/tests/system/dlv/ns6/child.db.in ZONE 2010 ./bin/tests/system/dlv/ns6/hints ZONE 2010 +./bin/tests/system/dlv/ns6/named.conf CONF-C 2010 +./bin/tests/system/dlv/ns6/sign.sh SH 2010 ./bin/tests/system/dlv/setup.sh SH 2004,2007,2009 -./bin/tests/system/dlv/tests.sh SH 2004,2007 +./bin/tests/system/dlv/tests.sh SH 2004,2007,2010 ./bin/tests/system/dnssec/README TXT.BRIEF 2000,2001,2002,2004 ./bin/tests/system/dnssec/clean.sh SH 2000,2001,2002,2004,2007,2008,2009 ./bin/tests/system/dnssec/dnssec_update_test.pl PERL 2002,2004,2007 From 2c35fdceffcdd92af3148ddf77ffa9eb23b4612f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 27 May 2010 23:49:35 +0000 Subject: [PATCH 12/37] file named.run was initially added on branch rt21394. From 248b9ab0b0e377996b2931f12d95e60317208dfd Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 27 May 2010 23:51:08 +0000 Subject: [PATCH 13/37] update copyright notice --- bin/named/xfrout.c | 6 +++--- bin/tests/system/dlv/clean.sh | 4 ++-- bin/tests/system/dlv/ns3/child.db.in | 4 ++-- bin/tests/system/dlv/ns3/sign.sh | 4 ++-- bin/tests/system/dlv/ns6/named.conf | 4 ++-- bin/tests/system/dlv/ns6/sign.sh | 4 ++-- bin/tests/system/dlv/tests.sh | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/bin/named/xfrout.c b/bin/named/xfrout.c index 57299d4b37..bfce03a49c 100644 --- a/bin/named/xfrout.c +++ b/bin/named/xfrout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2003 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: xfrout.c,v 1.137 2010/05/27 03:23:56 marka Exp $ */ +/* $Id: xfrout.c,v 1.138 2010/05/27 23:51:08 tbox Exp $ */ #include @@ -1068,7 +1068,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) { else #endif CHECK(xfrout_ctx_create(mctx, client, request->id, - question_name, reqtype, question_class, + question_name, reqtype, question_class, zone, db, ver, quota, stream, dns_message_gettsigkey(request), tsigbuf, diff --git a/bin/tests/system/dlv/clean.sh b/bin/tests/system/dlv/clean.sh index 1c205bdbe3..5611c7c17f 100644 --- a/bin/tests/system/dlv/clean.sh +++ b/bin/tests/system/dlv/clean.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2004, 2007, 2010 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 @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.6 2010/05/26 06:28:00 marka Exp $ +# $Id: clean.sh,v 1.7 2010/05/27 23:51:08 tbox Exp $ rm -f random.data rm -f ns*/named.run diff --git a/bin/tests/system/dlv/ns3/child.db.in b/bin/tests/system/dlv/ns3/child.db.in index a89c7f5f57..40878f4032 100644 --- a/bin/tests/system/dlv/ns3/child.db.in +++ b/bin/tests/system/dlv/ns3/child.db.in @@ -1,4 +1,4 @@ -; Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") +; Copyright (C) 2004, 2007, 2010 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 @@ -12,7 +12,7 @@ ; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR ; PERFORMANCE OF THIS SOFTWARE. -; $Id: child.db.in,v 1.5 2010/05/26 06:28:00 marka Exp $ +; $Id: child.db.in,v 1.6 2010/05/27 23:51:08 tbox Exp $ $TTL 120 @ SOA ns hostmaster.ns 1 3600 1200 604800 60 diff --git a/bin/tests/system/dlv/ns3/sign.sh b/bin/tests/system/dlv/ns3/sign.sh index dc22b1d361..c85700b03f 100755 --- a/bin/tests/system/dlv/ns3/sign.sh +++ b/bin/tests/system/dlv/ns3/sign.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2004, 2007, 2009, 2010 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 @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: sign.sh,v 1.8 2010/05/26 07:00:37 marka Exp $ +# $Id: sign.sh,v 1.9 2010/05/27 23:51:08 tbox Exp $ (cd ../ns6 && sh -e ./sign.sh) diff --git a/bin/tests/system/dlv/ns6/named.conf b/bin/tests/system/dlv/ns6/named.conf index 8cc0d11411..4b4055c852 100644 --- a/bin/tests/system/dlv/ns6/named.conf +++ b/bin/tests/system/dlv/ns6/named.conf @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2010 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 @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: named.conf,v 1.2 2010/05/26 06:28:00 marka Exp $ */ +/* $Id: named.conf,v 1.3 2010/05/27 23:51:08 tbox Exp $ */ controls { /* empty */ }; diff --git a/bin/tests/system/dlv/ns6/sign.sh b/bin/tests/system/dlv/ns6/sign.sh index 9713f6217e..62797822e1 100755 --- a/bin/tests/system/dlv/ns6/sign.sh +++ b/bin/tests/system/dlv/ns6/sign.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2010 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 @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: sign.sh,v 1.2 2010/05/26 06:28:00 marka Exp $ +# $Id: sign.sh,v 1.3 2010/05/27 23:51:08 tbox Exp $ SYSTEMTESTTOP=../.. . $SYSTEMTESTTOP/conf.sh diff --git a/bin/tests/system/dlv/tests.sh b/bin/tests/system/dlv/tests.sh index 4b0c1d1de3..3b66cf1083 100644 --- a/bin/tests/system/dlv/tests.sh +++ b/bin/tests/system/dlv/tests.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2004, 2007, 2010 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 @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.5 2010/05/26 06:28:00 marka Exp $ +# $Id: tests.sh,v 1.6 2010/05/27 23:51:08 tbox Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh From bdc5b20680b11c37a5bbec8f25bb4d07091623cd Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Fri, 28 May 2010 00:21:05 +0000 Subject: [PATCH 14/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 2e0a7513d1..632f4d9202 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.258 2010/05/27 04:23:37 tbox Exp $ +# $Id: SRCID,v 1.259 2010/05/28 00:21:05 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/27 04:23:37 $ )" +SRCID="( $Date: 2010/05/28 00:21:05 $ )" From ead77b9ad4821433ad45ef1de2c072b7c8f94f48 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 28 May 2010 03:15:48 +0000 Subject: [PATCH 15/37] 2906. [bug] Add RFC 5011 implementation issues. [RT #20903] --- CHANGES | 2 + lib/dns/zone.c | 131 ++++++++++++++++++++++++++++++++----------------- 2 files changed, 87 insertions(+), 46 deletions(-) diff --git a/CHANGES b/CHANGES index 4c92129b62..4ea8474583 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +2906. [bug] Add RFC 5011 implementation issues. [RT #20903] + 2905. [port] aix: set use_atomic=yes with native compiler. [RT #21402] diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 02e634fd66..986d0efd02 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.567 2010/05/18 02:38:10 tbox Exp $ */ +/* $Id: zone.c,v 1.568 2010/05/28 03:15:48 marka Exp $ */ /*! \file */ @@ -2669,12 +2669,14 @@ set_refreshkeytimer(dns_zone_t *zone, dns_rdata_keydata_t *key, if (key->removehd > now && key->removehd < then) then = key->removehd; - isc_time_set(&timenow, now, 0); - isc_time_set(&timethen, ISC_MAX(then, now), 0); + TIME_NOW(&timenow); + if (then > now) + DNS_ZONE_TIME_ADD(&timenow, then - now, &timethen); + else + timethen = timenow; if (isc_time_compare(&zone->refreshkeytime, &timenow) < 0 || - isc_time_compare(&timethen, &zone->refreshkeytime) < 0) { + isc_time_compare(&timethen, &zone->refreshkeytime) < 0) zone->refreshkeytime = timethen; - } zone_settimer(zone, &timenow); } @@ -6976,9 +6978,13 @@ matchkey(dns_rdataset_t *rdset, dns_rdata_t *rr) { * MIN(15 days, * 1/2 * OrigTTL, * 1/2 * RRSigExpirationInterval)) + * or for retries: MAX(1 hr, + * MIN(1 day, + * 1/10 * OrigTTL, + * 1/10 * RRSigExpirationInterval)) */ static inline isc_stdtime_t -refresh_time(dns_keyfetch_t *kfetch) { +refresh_time(dns_keyfetch_t *kfetch, isc_boolean_t retry) { isc_result_t result; isc_uint32_t t; dns_rdataset_t *rdset; @@ -7000,20 +7006,36 @@ refresh_time(dns_keyfetch_t *kfetch) { dns_rdataset_current(rdset, &sigrr); result = dns_rdata_tostruct(&sigrr, &sig, NULL); - t = sig.originalttl / 2; + if (!retry) { + t = sig.originalttl / 2; - if (isc_serial_gt(sig.timeexpire, now)) { - isc_uint32_t exp = (sig.timeexpire - now) / 2; - if (t > exp) - t = exp; + if (isc_serial_gt(sig.timeexpire, now)) { + isc_uint32_t exp = (sig.timeexpire - now) / 2; + if (t > exp) + t = exp; + } + + if (t > (15*DAY)) + t = (15*DAY); + + if (t < HOUR) + t = HOUR; + } else { + t = sig.originalttl / 10; + + if (isc_serial_gt(sig.timeexpire, now)) { + isc_uint32_t exp = (sig.timeexpire - now) / 10; + if (t > exp) + t = exp; + } + + if (t > DAY) + t = DAY; + + if (t < HOUR) + t = HOUR; } - if (t > (15*DAY)) - t = (15*DAY); - - if (t < HOUR) - t = HOUR; - return (now + t); } @@ -7023,7 +7045,8 @@ refresh_time(dns_keyfetch_t *kfetch) { * hold zone lock. */ static isc_result_t -minimal_update(dns_keyfetch_t *kfetch, dns_dbversion_t *ver, dns_diff_t *diff) { +minimal_update(dns_keyfetch_t *kfetch, dns_dbversion_t *ver, dns_diff_t *diff) +{ isc_result_t result; isc_buffer_t keyb; unsigned char key_buf[4096]; @@ -7048,7 +7071,7 @@ minimal_update(dns_keyfetch_t *kfetch, dns_dbversion_t *ver, dns_diff_t *diff) { /* Update refresh timer */ CHECK(dns_rdata_tostruct(&rdata, &keydata, NULL)); - keydata.refresh = refresh_time(kfetch); + keydata.refresh = refresh_time(kfetch, ISC_TRUE); set_refreshkeytimer(zone, &keydata, now); dns_rdata_reset(&rdata); @@ -7145,7 +7168,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { dns_fetchevent_t *devent; dns_keyfetch_t *kfetch; dns_zone_t *zone; - isc_mem_t *mctx; + isc_mem_t *mctx = NULL; dns_keytable_t *secroots = NULL; dns_dbversion_t *ver = NULL; dns_diff_t diff; @@ -7173,7 +7196,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { kfetch = event->ev_arg; zone = kfetch->zone; - mctx = zone->mctx; + isc_mem_attach(zone->mctx, &mctx); keyname = dns_fixedname_name(&kfetch->name); devent = (dns_fetchevent_t *) event; @@ -7197,6 +7220,12 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { dns_db_newversion(kfetch->db, &ver); dns_diff_init(mctx, &diff); + zone->refreshkeycount--; + alldone = ISC_TF(zone->refreshkeycount == 0); + + if (alldone) + DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_REFRESHING); + /* Fetch failed */ if (eresult != ISC_R_SUCCESS || !dns_rdataset_isassociated(&kfetch->dnskeyset)) { @@ -7204,6 +7233,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { "Unable to fetch DNSKEY set " "'%s': %s", namebuf, dns_result_totext(eresult)); CHECK(minimal_update(kfetch, ver, &diff)); + changed = ISC_TRUE; goto failure; } @@ -7213,6 +7243,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { "No DNSKEY RRSIGs found for " "'%s': %s", namebuf, dns_result_totext(eresult)); CHECK(minimal_update(kfetch, ver, &diff)); + changed = ISC_TRUE; goto failure; } @@ -7320,7 +7351,8 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { "from %s; restarting acceptance " "timer", namebuf); keydata.addhd = now + MONTH; - keydata.refresh = refresh_time(kfetch); + keydata.refresh = refresh_time(kfetch, + ISC_FALSE); } else if (keydata.addhd == 0) { keydata.addhd = now; } else if (keydata.removehd == 0) { @@ -7331,7 +7363,8 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { } else if (now > keydata.removehd) { deletekey = ISC_TRUE; } else { - keydata.refresh = refresh_time(kfetch); + keydata.refresh = refresh_time(kfetch, + ISC_FALSE); } if (secure || deletekey) { @@ -7488,7 +7521,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { if (updatekey) { /* Set refresh timer */ - keydata.refresh = refresh_time(kfetch); + keydata.refresh = refresh_time(kfetch, ISC_FALSE); dns_rdata_reset(&keydatarr); isc_buffer_init(&keyb, key_buf, sizeof(key_buf)); dns_rdata_fromstruct(&keydatarr, zone->rdclass, @@ -7506,7 +7539,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { dns_keydata_fromdnskey(&keydata, &dnskey, 0, 0, 0, NULL); keydata.addhd = initializing ? now : now + MONTH; - keydata.refresh = refresh_time(kfetch); + keydata.refresh = refresh_time(kfetch, ISC_FALSE); dns_rdata_reset(&keydatarr); isc_buffer_init(&keyb, key_buf, sizeof(key_buf)); dns_rdata_fromstruct(&keydatarr, zone->rdclass, @@ -7544,17 +7577,11 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { fail_secure(zone->view->viewlist, keyname); failure: - zone->refreshkeycount--; - alldone = ISC_TF(zone->refreshkeycount == 0); - if (changed) { DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_LOADED); zone_needdump(zone, 30); } - if (alldone) - DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_REFRESHING); - UNLOCK_ZONE(zone); /* Write changes to journal file. */ @@ -7578,6 +7605,7 @@ keyfetch_done(isc_task_t *task, isc_event_t *event) { dns_name_free(keyname, mctx); isc_mem_put(mctx, kfetch, sizeof(dns_keyfetch_t)); + isc_mem_detach(&mctx); if (secroots != NULL) dns_keytable_detach(&secroots); @@ -13434,13 +13462,14 @@ clear_keylist(dns_dnsseckeylist_t *list, isc_mem_t *mctx) { } } +/* Called once; *timep should be set to the current time. */ static isc_result_t next_keyevent(dst_key_t *key, isc_stdtime_t *timep) { isc_result_t result; isc_stdtime_t now, then = 0, event; int i; - isc_stdtime_get(&now); + now = *timep; for (i = 0; i <= DST_MAX_TIMES; i++) { result = dst_key_gettime(key, i, &event); @@ -13709,6 +13738,8 @@ zone_rekey(dns_zone_t *zone) { const char *dir; isc_mem_t *mctx; isc_stdtime_t now; + isc_time_t timenow; + isc_interval_t ival; REQUIRE(DNS_ZONE_VALID(zone)); @@ -13722,7 +13753,6 @@ zone_rekey(dns_zone_t *zone) { dir = dns_zone_getkeydirectory(zone); mctx = zone->mctx; dns_diff_init(mctx, &diff); - isc_stdtime_get(&now); CHECK(dns_zone_getdb(zone, &db)); CHECK(dns_db_newversion(db, &ver)); @@ -13741,11 +13771,14 @@ zone_rekey(dns_zone_t *zone) { dns_rdatatype_none, 0, &keyset, &keysigs); if (result == ISC_R_SUCCESS) { ttl = keyset.ttl; - CHECK(dns_dnssec_keylistfromrdataset(&zone->origin, dir, - mctx, &keyset, - &keysigs, &soasigs, - ISC_FALSE, ISC_FALSE, - &dnskeys)); + result = dns_dnssec_keylistfromrdataset(&zone->origin, dir, + mctx, &keyset, + &keysigs, &soasigs, + ISC_FALSE, ISC_FALSE, + &dnskeys); + /* Can't get keys for some reason; try again later. */ + if (result != ISC_R_SUCCESS) + goto trylater; } else if (result != ISC_R_NOTFOUND) goto failure; @@ -13759,15 +13792,13 @@ zone_rekey(dns_zone_t *zone) { ISC_TF(!check_ksk), mctx, logmsg); - /* Keys couldn't be updated for some reason; try again later. */ + /* Keys couldn't be updated for some reason; + * try again later. */ if (result != ISC_R_SUCCESS) { - isc_interval_t ival; dns_zone_log(zone, ISC_LOG_ERROR, "zone_rekey:" "couldn't update zone keys: %s", isc_result_totext(result)); - isc_interval_set(&ival, HOUR, 0); - isc_time_nowplusinterval(&zone->refreshkeytime, &ival); - goto failure; + goto trylater; } /* See if any pre-existing keys have newly become active */ @@ -13869,12 +13900,14 @@ zone_rekey(dns_zone_t *zone) { UNLOCK_ZONE(zone); } + isc_stdtime_get(&now); + TIME_NOW(&timenow); isc_time_settoepoch(&zone->refreshkeytime); for (key = ISC_LIST_HEAD(dnskeys); key != NULL; key = ISC_LIST_NEXT(key, link)) { isc_stdtime_t then; - isc_time_t timenow, timethen; + isc_time_t timethen; /* * If we are doing automatic key maintenance and the @@ -13884,15 +13917,15 @@ zone_rekey(dns_zone_t *zone) { if (!DNS_ZONEKEY_OPTION(zone, DNS_ZONEKEY_MAINTAIN)) break; + then = now; result = next_keyevent(key->key, &then); if (result != ISC_R_SUCCESS) continue; - isc_time_set(&timethen, then, 0); + DNS_ZONE_TIME_ADD(&timenow, then - now, &timethen); LOCK_ZONE(zone); if (isc_time_isepoch(&zone->refreshkeytime) || isc_time_compare(&timethen, &zone->refreshkeytime) < 0) { - TIME_NOW(&timenow); zone->refreshkeytime = timethen; zone_settimer(zone, &timenow); } @@ -13918,6 +13951,12 @@ zone_rekey(dns_zone_t *zone) { dns_db_detachnode(db, &node); if (db != NULL) dns_db_detach(&db); + return; + + trylater: + isc_interval_set(&ival, HOUR, 0); + isc_time_nowplusinterval(&zone->refreshkeytime, &ival); + goto failure; } void From 249dcf3932668693a53c2790b97f5170efb233e1 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 28 May 2010 03:16:57 +0000 Subject: [PATCH 16/37] Add -> Address --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 4ea8474583..604a63c5ba 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -2906. [bug] Add RFC 5011 implementation issues. [RT #20903] +2906. [bug] Address RFC 5011 implementation issues. [RT #20903] 2905. [port] aix: set use_atomic=yes with native compiler. [RT #21402] From 0eca13810e637ffbf45025244611348a63de70b0 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Fri, 28 May 2010 04:23:51 +0000 Subject: [PATCH 17/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 632f4d9202..7871a7db20 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.259 2010/05/28 00:21:05 tbox Exp $ +# $Id: SRCID,v 1.260 2010/05/28 04:23:51 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/28 00:21:05 $ )" +SRCID="( $Date: 2010/05/28 04:23:51 $ )" From 57b47bca2621b2bade5dadb18984d155346d2b9a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 29 May 2010 10:36:22 +0000 Subject: [PATCH 18/37] checkpoint --- lib/isccfg/namedconf.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index e14435ffcb..7f72c8f01e 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: namedconf.c,v 1.116 2010/05/21 14:10:32 marka Exp $ */ +/* $Id: namedconf.c,v 1.117 2010/05/29 10:36:22 marka Exp $ */ /*! \file */ @@ -64,6 +64,8 @@ parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type, static isc_result_t parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret); +static void +print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj); static void doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type); @@ -342,8 +344,8 @@ static cfg_type_t cfg_type_grant = { }; static cfg_type_t cfg_type_updatepolicy = { - "update_policy", parse_updatepolicy, NULL, doc_updatepolicy, - &cfg_rep_list, &cfg_type_grant + "update_policy", parse_updatepolicy, print_updatepolicy, + doc_updatepolicy, &cfg_rep_list, &cfg_type_grant }; static isc_result_t @@ -381,6 +383,14 @@ parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, return (result); } +static void +print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj) { + if (cfg_obj_isstring(obj)) + cfg_print_ustring(pctx, obj); + else + cfg_print_bracketed_list(pctx, obj); +} + static void doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type) { cfg_print_cstr(pctx, "( local | { "); From 636718021dfc7b23d724e9a39e63cc13de1c6a9d Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Sat, 29 May 2010 11:16:53 +0000 Subject: [PATCH 19/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 7871a7db20..2692f524e9 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.260 2010/05/28 04:23:51 tbox Exp $ +# $Id: SRCID,v 1.261 2010/05/29 11:16:53 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/28 04:23:51 $ )" +SRCID="( $Date: 2010/05/29 11:16:53 $ )" From dbf3418d74da83dd6c8338b51aa2591f0be89774 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Sat, 29 May 2010 23:19:15 +0000 Subject: [PATCH 20/37] auto update --- doc/private/branches | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/private/branches b/doc/private/branches index 58145baea0..5ef3045fb7 100644 --- a/doc/private/branches +++ b/doc/private/branches @@ -339,6 +339,7 @@ rt21364 new dhankins // 2010-05-25 22:56 +0000 rt21367 new marka // 2010-05-21 06:24 +0000 rt21392 new marka // 2010-05-26 00:41 +0000 rt21394 new marka // 2010-05-27 00:51 +0000 +rt21416 new marka // 2010-05-29 10:32 +0000 shane_dbbackend open skan open explorer skan-metazones1 private explorer From 43998395c9ac375104fa06ee6aad1969cb497fcd Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Tue, 1 Jun 2010 23:17:03 +0000 Subject: [PATCH 21/37] auto update --- doc/private/branches | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/private/branches b/doc/private/branches index 5ef3045fb7..08cdeb111d 100644 --- a/doc/private/branches +++ b/doc/private/branches @@ -339,7 +339,9 @@ rt21364 new dhankins // 2010-05-25 22:56 +0000 rt21367 new marka // 2010-05-21 06:24 +0000 rt21392 new marka // 2010-05-26 00:41 +0000 rt21394 new marka // 2010-05-27 00:51 +0000 +rt21409 new marka // 2010-06-01 03:49 +0000 rt21416 new marka // 2010-05-29 10:32 +0000 +rt21444 new marka // 2010-06-01 22:07 +0000 shane_dbbackend open skan open explorer skan-metazones1 private explorer From b00de53de2e37154d9046d481734cfb9a8573204 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Jun 2010 00:38:29 +0000 Subject: [PATCH 22/37] 2907. [bug] The export version of libdns had undefined references. [RT #21444] --- CHANGES | 3 +++ lib/dns/nsec3.c | 6 +++++- lib/dns/view.c | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 604a63c5ba..a2c56e2dfe 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2907. [bug] The export version of libdns had undefined references. + [RT #21444] + 2906. [bug] Address RFC 5011 implementation issues. [RT #20903] 2905. [port] aix: set use_atomic=yes with native compiler. diff --git a/lib/dns/nsec3.c b/lib/dns/nsec3.c index 7a40699615..8ed91b1867 100644 --- a/lib/dns/nsec3.c +++ b/lib/dns/nsec3.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsec3.c,v 1.17 2010/05/18 02:38:10 tbox Exp $ */ +/* $Id: nsec3.c,v 1.18 2010/06/02 00:38:29 marka Exp $ */ #include @@ -1005,6 +1005,7 @@ dns_nsec3param_toprivate(dns_rdata_t *src, dns_rdata_t *target, ISC_LINK_INIT(target, link); } +#ifdef BIND9 static isc_result_t rr_exists(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, const dns_rdata_t *rdata, isc_boolean_t *flag) @@ -1047,7 +1048,9 @@ rr_exists(dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, dns_db_detachnode(db, &node); return (result); } +#endif +#ifdef BIND9 isc_result_t dns_nsec3param_deletechains(dns_db_t *db, dns_dbversion_t *ver, dns_zone_t *zone, dns_diff_t *diff) @@ -1163,6 +1166,7 @@ dns_nsec3param_deletechains(dns_db_t *db, dns_dbversion_t *ver, dns_db_detachnode(db, &node); return (result); } +#endif isc_result_t dns_nsec3_addnsec3sx(dns_db_t *db, dns_dbversion_t *version, diff --git a/lib/dns/view.c b/lib/dns/view.c index 2fb538d435..1f42b7abe9 100644 --- a/lib/dns/view.c +++ b/lib/dns/view.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: view.c,v 1.163 2010/05/14 04:48:28 marka Exp $ */ +/* $Id: view.c,v 1.164 2010/06/02 00:38:28 marka Exp $ */ /*! \file */ @@ -362,8 +362,10 @@ destroy(dns_view_t *view) { dns_stats_detach(&view->resquerystats); if (view->secroots_priv != NULL) dns_keytable_detach(&view->secroots_priv); +#ifdef BIND9 if (view->managed_keys != NULL) dns_zone_detach(&view->managed_keys); +#endif dns_fwdtable_destroy(&view->fwdtable); dns_aclenv_destroy(&view->aclenv); DESTROYLOCK(&view->lock); From 29f0da7fb84ea8010175769baecd12ab20903bb4 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Jun 2010 00:58:54 +0000 Subject: [PATCH 23/37] 2908. [bug] It was possible for re-signing to stop after removing a DNSKEY. [RT #21384] --- CHANGES | 3 +++ lib/dns/zone.c | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index a2c56e2dfe..200036dfb9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2908. [bug] It was possible for re-signing to stop after removing + a DNSKEY. [RT #21384] + 2907. [bug] The export version of libdns had undefined references. [RT #21444] diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 986d0efd02..a2cd3724a9 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: zone.c,v 1.568 2010/05/28 03:15:48 marka Exp $ */ +/* $Id: zone.c,v 1.569 2010/06/02 00:58:54 marka Exp $ */ /*! \file */ @@ -4551,7 +4551,7 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, if (type != dns_rdatatype_dnskey) { result = update_one_rr(db, ver, diff, - DNS_DIFFOP_DEL, name, + DNS_DIFFOP_DELRESIGN, name, rdataset.ttl, &rdata); dns_rdata_reset(&rdata); if (result != ISC_R_SUCCESS) @@ -4593,7 +4593,7 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, break; } result = update_one_rr(db, ver, diff, - DNS_DIFFOP_DEL, + DNS_DIFFOP_DELRESIGN, name, rdataset.ttl, &rdata); break; @@ -4604,8 +4604,9 @@ del_sigs(dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, dns_name_t *name, * delete the RRSIG. */ if (!found) - result = update_one_rr(db, ver, diff, DNS_DIFFOP_DEL, - name, rdataset.ttl, &rdata); + result = update_one_rr(db, ver, diff, + DNS_DIFFOP_DELRESIGN, name, + rdataset.ttl, &rdata); dns_rdata_reset(&rdata); if (result != ISC_R_SUCCESS) break; @@ -6417,7 +6418,7 @@ del_sig(dns_db_t *db, dns_dbversion_t *version, dns_name_t *name, rrsig.keyid != keyid) continue; CHECK(update_one_rr(db, version, diff, - DNS_DIFFOP_DEL, name, + DNS_DIFFOP_DELRESIGN, name, rdataset.ttl, &rdata)); } dns_rdataset_disassociate(&rdataset); From a27bbd21cf07371fc71e7ade75c3d78a5b98b7f9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Jun 2010 01:07:47 +0000 Subject: [PATCH 24/37] 2909. [bug] named-checkzone -p could die if "update-policy local;" was specified in named.conf. [RT #21416] --- CHANGES | 3 +++ bin/tests/system/checkconf/good.conf | 8 +++++++- bin/tests/system/checkconf/tests.sh | 7 ++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 200036dfb9..9021ebb32b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2909. [bug] named-checkzone -p could die if "update-policy local;" + was specified in named.conf. [RT #21416] + 2908. [bug] It was possible for re-signing to stop after removing a DNSKEY. [RT #21384] diff --git a/bin/tests/system/checkconf/good.conf b/bin/tests/system/checkconf/good.conf index c810b47d2c..3b3ef0b531 100644 --- a/bin/tests/system/checkconf/good.conf +++ b/bin/tests/system/checkconf/good.conf @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: good.conf,v 1.4 2007/06/19 23:47:01 tbox Exp $ */ +/* $Id: good.conf,v 1.5 2010/06/02 01:07:47 marka Exp $ */ /* * This is just a random selection of configuration options. @@ -54,3 +54,9 @@ options { serial-query-rate 100; server-id none; }; + +zone "example1" { + type master; + file "xxx"; + update-policy local; +}; diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh index 8444664b76..89f6e90aea 100644 --- a/bin/tests/system/checkconf/tests.sh +++ b/bin/tests/system/checkconf/tests.sh @@ -12,7 +12,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.3 2007/06/19 23:47:01 tbox Exp $ +# $Id: tests.sh,v 1.4 2010/06/02 01:07:47 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -26,6 +26,11 @@ $CHECKCONF good.conf > /dev/null 2>&1 || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` +echo "I: checking that named-checkconf prints a known good config" +ret=0 +$CHECKCONF -p good.conf > /dev/null 2>&1 || ret=1 +if [ $ret != 0 ]; then echo "I:failed"; fi +status=`expr $status + $ret` echo "I: checking that named-checkconf handles a known bad config" ret=1 From 0fde13e46fef2ac9d8250adb92263f436425a914 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 2 Jun 2010 01:13:18 +0000 Subject: [PATCH 25/37] newcopyrights --- util/copyrights | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/copyrights b/util/copyrights index 955216f89c..39efe390dd 100644 --- a/util/copyrights +++ b/util/copyrights @@ -590,8 +590,8 @@ ./bin/tests/system/cacheclean/ns2/named.conf CONF-C 2001,2004,2005,2007 ./bin/tests/system/cacheclean/tests.sh SH 2001,2004,2007 ./bin/tests/system/checkconf/bad.conf CONF-C 2005,2007 -./bin/tests/system/checkconf/good.conf CONF-C 2005,2007 -./bin/tests/system/checkconf/tests.sh SH 2005,2007 +./bin/tests/system/checkconf/good.conf CONF-C 2005,2007,2010 +./bin/tests/system/checkconf/tests.sh SH 2005,2007,2010 ./bin/tests/system/checknames/clean.sh SH 2004,2007 ./bin/tests/system/checknames/ns1/.cvsignore X 2009 ./bin/tests/system/checknames/ns1/fail.example.db.in ZONE 2004,2007 From 80852eb5a8df5f3d70efb764e00f8f09efc5730c Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Jun 2010 01:14:02 +0000 Subject: [PATCH 26/37] named-checkzone -> named-checkconf --- CHANGES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 9021ebb32b..594c1e6e54 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -2909. [bug] named-checkzone -p could die if "update-policy local;" +2909. [bug] named-checkconf -p could die if "update-policy local;" was specified in named.conf. [RT #21416] 2908. [bug] It was possible for re-signing to stop after removing From e2fe51aab47fe42c60f31bdd101cc5d7a0b58e47 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 2 Jun 2010 01:25:45 +0000 Subject: [PATCH 27/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 2692f524e9..d14048c2a9 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.261 2010/05/29 11:16:53 tbox Exp $ +# $Id: SRCID,v 1.262 2010/06/02 01:25:45 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/05/29 11:16:53 $ )" +SRCID="( $Date: 2010/06/02 01:25:45 $ )" From a2d2fc17b07849d24cfa067ba872aaabd923c69d Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 2 Jun 2010 01:28:40 +0000 Subject: [PATCH 28/37] update copyright notice --- bin/tests/system/checkconf/good.conf | 4 ++-- bin/tests/system/checkconf/tests.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/tests/system/checkconf/good.conf b/bin/tests/system/checkconf/good.conf index 3b3ef0b531..4cce2bbbc3 100644 --- a/bin/tests/system/checkconf/good.conf +++ b/bin/tests/system/checkconf/good.conf @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC") + * Copyright (C) 2005, 2007, 2010 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 @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: good.conf,v 1.5 2010/06/02 01:07:47 marka Exp $ */ +/* $Id: good.conf,v 1.6 2010/06/02 01:28:40 tbox Exp $ */ /* * This is just a random selection of configuration options. diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh index 89f6e90aea..949e350836 100644 --- a/bin/tests/system/checkconf/tests.sh +++ b/bin/tests/system/checkconf/tests.sh @@ -1,4 +1,4 @@ -# Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC") +# Copyright (C) 2005, 2007, 2010 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 @@ -12,7 +12,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.4 2010/06/02 01:07:47 marka Exp $ +# $Id: tests.sh,v 1.5 2010/06/02 01:28:40 tbox Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh From fcf0d7cce2fda3b7bcd92c2acdf967989122b539 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Wed, 2 Jun 2010 02:23:20 +0000 Subject: [PATCH 29/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index d14048c2a9..3962f315e4 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.262 2010/06/02 01:25:45 tbox Exp $ +# $Id: SRCID,v 1.263 2010/06/02 02:23:20 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/06/02 01:25:45 $ )" +SRCID="( $Date: 2010/06/02 02:23:20 $ )" From a20996ab6ff2be473b85470fddd2380a3e180e7b Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2010 02:29:58 +0000 Subject: [PATCH 30/37] 2910. [func] Sanity check Kerberos credentials. [RT #20986] --- CHANGES | 2 + config.h.in | 8 +- configure | 205 ++++++++++++++++++++++++++---- configure.in | 10 +- lib/dns/gssapictx.c | 55 +++++++- lib/isc/include/isc/platform.h.in | 8 +- 6 files changed, 259 insertions(+), 29 deletions(-) diff --git a/CHANGES b/CHANGES index 594c1e6e54..80454f51c1 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +2910. [func] Sanity check Kerberos credentials. [RT #20986] + 2909. [bug] named-checkconf -p could die if "update-policy local;" was specified in named.conf. [RT #21416] diff --git a/config.h.in b/config.h.in index 26222754a6..eca4f9a830 100644 --- a/config.h.in +++ b/config.h.in @@ -16,7 +16,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: config.h.in,v 1.126 2010/05/26 23:44:27 marka Exp $ */ +/* $Id: config.h.in,v 1.127 2010/06/03 02:29:58 marka Exp $ */ /*! \file */ @@ -193,6 +193,12 @@ int sigwait(const unsigned int *set, int *sig); /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_KRB5_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_KRB5_KRB5_H + /* Define to 1 if you have the `c' library (-lc). */ #undef HAVE_LIBC diff --git a/configure b/configure index 2469a21ada..7cd23172f0 100755 --- a/configure +++ b/configure @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # -# $Id: configure,v 1.477 2010/05/26 23:44:27 marka Exp $ +# $Id: configure,v 1.478 2010/06/03 02:29:58 marka Exp $ # # Portions Copyright (C) 1996-2001 Nominum, Inc. # @@ -29,7 +29,7 @@ # 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. -# From configure.in Revision: 1.494 . +# From configure.in Revision: 1.495 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.62. # @@ -922,6 +922,7 @@ PKCS11_TOOLS PKCS11_PROVIDER ISC_PLATFORM_HAVEGSSAPI ISC_PLATFORM_GSSAPIHEADER +ISC_PLATFORM_KRB5HEADER USE_GSSAPI DST_GSSAPI_INC DNS_GSSAPI_LIBS @@ -4089,7 +4090,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 4092 "configure"' > conftest.$ac_ext + echo '#line 4093 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7087,11 +7088,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7090: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7091: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7094: \$? = $ac_status" >&5 + echo "$as_me:7095: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7377,11 +7378,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7380: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7381: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7384: \$? = $ac_status" >&5 + echo "$as_me:7385: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7481,11 +7482,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7484: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7485: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:7488: \$? = $ac_status" >&5 + echo "$as_me:7489: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -9881,7 +9882,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:12398: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:12401: \$? = $ac_status" >&5 + echo "$as_me:12402: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -12498,11 +12499,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:12501: $lt_compile\"" >&5) + (eval echo "\"\$as_me:12502: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:12505: \$? = $ac_status" >&5 + echo "$as_me:12506: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14081,11 +14082,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14084: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14085: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14088: \$? = $ac_status" >&5 + echo "$as_me:14089: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14185,11 +14186,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14188: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14189: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14192: \$? = $ac_status" >&5 + echo "$as_me:14193: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -16404,11 +16405,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16407: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16408: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16411: \$? = $ac_status" >&5 + echo "$as_me:16412: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -16694,11 +16695,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16697: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16698: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16701: \$? = $ac_status" >&5 + echo "$as_me:16702: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -16798,11 +16799,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16801: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16802: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:16805: \$? = $ac_status" >&5 + echo "$as_me:16806: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -23906,6 +23907,159 @@ $as_echo "$as_me: error: gssapi.h not found" >&2;} { (exit 1); exit 1; }; } fi + + +for ac_header in krb5.h krb5/krb5.h +do +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +$as_echo_n "checking for $ac_header... " >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +fi +ac_res=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +else + # Is the header compilable? +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 +$as_echo_n "checking $ac_header usability... " >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +$as_echo "$ac_header_compiler" >&6; } + +# Is the header present? +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 +$as_echo_n "checking $ac_header presence... " >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +$as_echo "$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +$as_echo_n "checking for $ac_header... " >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + +fi +if test `eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>" +fi + +done + + + if test "$ISC_PLATFORM_KRB5HEADER" = ""; then + { { $as_echo "$as_me:$LINENO: error: gssapi.h not found" >&5 +$as_echo "$as_me: error: gssapi.h not found" >&2;} + { (exit 1); exit 1; }; } + fi + CPPFLAGS="$saved_cppflags" # @@ -24064,6 +24218,7 @@ esac + DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_LIBS" # diff --git a/configure.in b/configure.in index 0a83f48939..a804c8c84d 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.494 $) +AC_REVISION($Revision: 1.495 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.59) @@ -785,6 +785,13 @@ case "$use_gssapi" in AC_MSG_ERROR([gssapi.h not found]) fi + AC_CHECK_HEADERS(krb5.h krb5/krb5.h, + [ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"]) + + if test "$ISC_PLATFORM_KRB5HEADER" = ""; then + AC_MSG_ERROR([gssapi.h not found]) + fi + CPPFLAGS="$saved_cppflags" # @@ -886,6 +893,7 @@ esac AC_SUBST(ISC_PLATFORM_HAVEGSSAPI) AC_SUBST(ISC_PLATFORM_GSSAPIHEADER) +AC_SUBST(ISC_PLATFORM_KRB5HEADER) AC_SUBST(USE_GSSAPI) AC_SUBST(DST_GSSAPI_INC) diff --git a/lib/dns/gssapictx.c b/lib/dns/gssapictx.c index 7317938caf..00597924eb 100644 --- a/lib/dns/gssapictx.c +++ b/lib/dns/gssapictx.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: gssapictx.c,v 1.16 2010/03/12 23:51:11 tbox Exp $ */ +/* $Id: gssapictx.c,v 1.17 2010/06/03 02:27:11 marka Exp $ */ #include @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -66,6 +67,7 @@ * we include SPNEGO's OID. */ #if defined(GSSAPI) +#include ISC_PLATFORM_KRB5HEADER static unsigned char krb5_mech_oid_bytes[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x12, 0x01, 0x02, 0x02 @@ -191,6 +193,54 @@ log_cred(const gss_cred_id_t cred) { } #endif +#ifdef GSSAPI +/* + * check for the most common configuration errors. + * + * The errors checked for are: + * - tkey-gssapi-credential doesn't start with DNS/ + * - the default realm in /etc/krb5.conf and the + * tkey-gssapi-credential bind config option don't match + */ +static void +dst_gssapi_check_config(const char *gss_name) { + const char *p; + krb5_context krb5_ctx; + char *krb5_realm = NULL; + + if (strncasecmp(gss_name, "DNS/", 4) != 0) { + gss_log(ISC_LOG_ERROR, "tkey-gssapi-credential (%s) " + "should start with 'DNS/'", gss_name); + return; + } + + if (krb5_init_context(&krb5_ctx) != 0) { + gss_log(ISC_LOG_ERROR, "Unable to initialise krb5 context"); + return; + } + if (krb5_get_default_realm(krb5_ctx, &krb5_realm) != 0) { + gss_log(ISC_LOG_ERROR, "Unable to get krb5 default realm"); + krb5_free_context(krb5_ctx); + return; + } + p = strchr(gss_name, '/'); + if (p == NULL) { + gss_log(ISC_LOG_ERROR, "badly formatted " + "tkey-gssapi-credentials (%s)", gss_name); + krb5_free_context(krb5_ctx); + return; + } + if (strcasecmp(p + 1, krb5_realm) != 0) { + gss_log(ISC_LOG_ERROR, "default realm from krb5.conf (%s) " + "does not match tkey-gssapi-credential (%s)", + krb5_realm, gss_name); + krb5_free_context(krb5_ctx); + return; + } + krb5_free_context(krb5_ctx); +} +#endif + isc_result_t dst_gssapi_acquirecred(dns_name_t *name, isc_boolean_t initiate, gss_cred_id_t *cred) @@ -223,6 +273,8 @@ dst_gssapi_acquirecred(dns_name_t *name, isc_boolean_t initiate, gret = gss_import_name(&minor, &gnamebuf, GSS_C_NO_OID, &gname); if (gret != GSS_S_COMPLETE) { + dst_gssapi_check_config((char *)array); + gss_log(3, "failed gss_import_name: %s", gss_error_tostring(gret, minor, buf, sizeof(buf))); @@ -254,6 +306,7 @@ dst_gssapi_acquirecred(dns_name_t *name, isc_boolean_t initiate, initiate ? "initiate" : "accept", (char *)gnamebuf.value, gss_error_tostring(gret, minor, buf, sizeof(buf))); + dst_gssapi_check_config((char *)array); return (ISC_R_FAILURE); } diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in index eb2ff0bfad..c392bb2bfd 100644 --- a/lib/isc/include/isc/platform.h.in +++ b/lib/isc/include/isc/platform.h.in @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: platform.h.in,v 1.53 2009/09/29 15:06:07 fdupont Exp $ */ +/* $Id: platform.h.in,v 1.54 2010/06/03 02:27:11 marka Exp $ */ #ifndef ISC_PLATFORM_H #define ISC_PLATFORM_H 1 @@ -219,6 +219,12 @@ */ @ISC_PLATFORM_GSSAPIHEADER@ +/* + * Defined to or for how to include + * the KRB5 header. + */ +@ISC_PLATFORM_KRB5HEADER@ + /* * Type used for resource limits. */ From 675cc80975eb7d15e0d9f1d5f424baafaf189fde Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2010 03:13:32 +0000 Subject: [PATCH 31/37] 2911. [bug] dnssec-signzone didn't handle out of zone records well. [RT #21367] --- CHANGES | 3 + bin/dnssec/dnssec-signzone.c | 155 +++++++++++++++++++------------ bin/tests/system/dnssec/clean.sh | 3 +- bin/tests/system/dnssec/tests.sh | 31 ++++++- 4 files changed, 129 insertions(+), 63 deletions(-) diff --git a/CHANGES b/CHANGES index 80454f51c1..2356f60477 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2911. [bug] dnssec-signzone didn't handle out of zone records well. + [RT #21367] + 2910. [func] Sanity check Kerberos credentials. [RT #20986] 2909. [bug] named-checkconf -p could die if "update-policy local;" diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index 7e325a67db..96b896d507 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -29,7 +29,7 @@ * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dnssec-signzone.c,v 1.260 2010/01/05 23:48:37 tbox Exp $ */ +/* $Id: dnssec-signzone.c,v 1.261 2010/06/03 03:13:31 marka Exp $ */ /*! \file */ @@ -1655,6 +1655,15 @@ verifyzone(void) { result = dns_dbiterator_current(dbiter, &node, name); check_dns_dbiterator_current(result); + if (!dns_name_issubdomain(name, gorigin)) { + dns_db_detachnode(gdb, &node); + result = dns_dbiterator_next(dbiter); + if (result == ISC_R_NOMORE) + done = ISC_TRUE; + else + check_result(result, "dns_dbiterator_next()"); + continue; + } if (delegation(name, node, NULL)) { zonecut = dns_fixedname_name(&fzonecut); dns_name_copy(name, zonecut, NULL); @@ -1990,6 +1999,46 @@ add_ds(dns_name_t *name, dns_dbnode_t *node, isc_uint32_t nsttl) { } } +/* + * Remove records of the given type and their signatures. + */ +static void +remove_records(dns_dbnode_t *node, dns_rdatatype_t which) { + isc_result_t result; + dns_rdatatype_t type, covers; + dns_rdatasetiter_t *rdsiter = NULL; + dns_rdataset_t rdataset; + + dns_rdataset_init(&rdataset); + + /* + * Delete any records of the given type at the apex. + */ + result = dns_db_allrdatasets(gdb, node, gversion, 0, &rdsiter); + check_result(result, "dns_db_allrdatasets()"); + for (result = dns_rdatasetiter_first(rdsiter); + result == ISC_R_SUCCESS; + result = dns_rdatasetiter_next(rdsiter)) { + dns_rdatasetiter_current(rdsiter, &rdataset); + type = rdataset.type; + covers = rdataset.covers; + dns_rdataset_disassociate(&rdataset); + if (type == which || covers == which) { + if (which == dns_rdatatype_nsec && !update_chain) + fatal("Zone contains NSEC records. Use -u " + "to update to NSEC3."); + if (which == dns_rdatatype_nsec3param && !update_chain) + fatal("Zone contains NSEC3 chains. Use -u " + "to update to NSEC."); + result = dns_db_deleterdataset(gdb, node, gversion, + type, covers); + check_result(result, "dns_db_deleterdataset()"); + continue; + } + } + dns_rdatasetiter_destroy(&rdsiter); +} + /*% * Generate NSEC records for the zone and remove NSEC3/NSEC3PARAM records. */ @@ -2049,36 +2098,25 @@ nsecify(void) { result = dns_dbiterator_first(dbiter); check_result(result, "dns_dbiterator_first()"); - result = dns_dbiterator_current(dbiter, &node, name); - check_dns_dbiterator_current(result); - - /* - * Delete any NSEC3PARAM records at the apex. - */ - result = dns_db_allrdatasets(gdb, node, gversion, 0, &rdsiter); - check_result(result, "dns_db_allrdatasets()"); - for (result = dns_rdatasetiter_first(rdsiter); - result == ISC_R_SUCCESS; - result = dns_rdatasetiter_next(rdsiter)) { - dns_rdatasetiter_current(rdsiter, &rdataset); - type = rdataset.type; - covers = rdataset.covers; - dns_rdataset_disassociate(&rdataset); - if (type == dns_rdatatype_nsec3param || - covers == dns_rdatatype_nsec3param) { - result = dns_db_deleterdataset(gdb, node, gversion, - type, covers); - check_result(result, - "dns_db_deleterdataset(nsec3param/rrsig)"); - continue; - } - } - dns_rdatasetiter_destroy(&rdsiter); - dns_db_detachnode(gdb, &node); - while (!done) { result = dns_dbiterator_current(dbiter, &node, name); check_dns_dbiterator_current(result); + /* + * Skip out-of-zone records. + */ + if (!dns_name_issubdomain(name, gorigin)) { + result = dns_dbiterator_next(dbiter); + if (result == ISC_R_NOMORE) + done = ISC_TRUE; + else + check_result(result, "dns_dbiterator_next()"); + dns_db_detachnode(gdb, &node); + continue; + } + + if (dns_name_equal(name, gorigin)) + remove_records(node, dns_rdatatype_nsec3param); + if (delegation(name, node, &nsttl)) { zonecut = dns_fixedname_name(&fzonecut); dns_name_copy(name, zonecut, NULL); @@ -2451,8 +2489,6 @@ nsec3ify(unsigned int hashalg, unsigned int iterations, dns_fixedname_t fname, fnextname, fzonecut; dns_name_t *name, *nextname, *zonecut; dns_rdataset_t rdataset; - dns_rdatasetiter_t *rdsiter = NULL; - dns_rdatatype_t type, covers; int order; isc_boolean_t active; isc_boolean_t done = ISC_FALSE; @@ -2477,40 +2513,25 @@ nsec3ify(unsigned int hashalg, unsigned int iterations, result = dns_dbiterator_first(dbiter); check_result(result, "dns_dbiterator_first()"); - result = dns_dbiterator_current(dbiter, &node, name); - check_dns_dbiterator_current(result); - - /* - * Delete any NSEC records at the apex. - */ - result = dns_db_allrdatasets(gdb, node, gversion, 0, &rdsiter); - check_result(result, "dns_db_allrdatasets()"); - for (result = dns_rdatasetiter_first(rdsiter); - result == ISC_R_SUCCESS; - result = dns_rdatasetiter_next(rdsiter)) { - dns_rdatasetiter_current(rdsiter, &rdataset); - type = rdataset.type; - covers = rdataset.covers; - dns_rdataset_disassociate(&rdataset); - if (type == dns_rdatatype_nsec || - covers == dns_rdatatype_nsec) { - if (!update_chain) - fatal("Zone contains NSEC records. Use -u " - "to update to NSEC3."); - - result = dns_db_deleterdataset(gdb, node, gversion, - type, covers); - check_result(result, - "dns_db_deleterdataset(nsec3param/rrsig)"); - continue; - } - } - dns_rdatasetiter_destroy(&rdsiter); - dns_db_detachnode(gdb, &node); - while (!done) { result = dns_dbiterator_current(dbiter, &node, name); check_dns_dbiterator_current(result); + /* + * Skip out-of-zone records. + */ + if (!dns_name_issubdomain(name, gorigin)) { + result = dns_dbiterator_next(dbiter); + if (result == ISC_R_NOMORE) + done = ISC_TRUE; + else + check_result(result, "dns_dbiterator_next()"); + dns_db_detachnode(gdb, &node); + continue; + } + + if (dns_name_equal(name, gorigin)) + remove_records(node, dns_rdatatype_nsec); + result = dns_dbiterator_next(dbiter); nextnode = NULL; while (result == ISC_R_SUCCESS) { @@ -2627,6 +2648,18 @@ nsec3ify(unsigned int hashalg, unsigned int iterations, while (!done) { result = dns_dbiterator_current(dbiter, &node, name); check_dns_dbiterator_current(result); + /* + * Skip out-of-zone records. + */ + if (!dns_name_issubdomain(name, gorigin)) { + result = dns_dbiterator_next(dbiter); + if (result == ISC_R_NOMORE) + done = ISC_TRUE; + else + check_result(result, "dns_dbiterator_next()"); + dns_db_detachnode(gdb, &node); + continue; + } result = dns_dbiterator_next(dbiter); nextnode = NULL; while (result == ISC_R_SUCCESS) { diff --git a/bin/tests/system/dnssec/clean.sh b/bin/tests/system/dnssec/clean.sh index 0f866b2249..0842eeaa7d 100644 --- a/bin/tests/system/dnssec/clean.sh +++ b/bin/tests/system/dnssec/clean.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: clean.sh,v 1.25 2009/10/27 23:47:44 tbox Exp $ +# $Id: clean.sh,v 1.26 2010/06/03 03:13:32 marka Exp $ rm -f */K* */keyset-* */dsset-* */dlvset-* */signedkey-* */*.signed */trusted.conf */tmp* */*.jnl */*.bk rm -f ns1/root.db ns2/example.db ns3/secure.example.db @@ -37,3 +37,4 @@ rm -f ns3/optout.nsec3.example.db rm -f ns3/optout.optout.example.db rm -f ns3/secure.nsec3.example.db rm -f ns3/secure.optout.example.db +rm -f signer/example.db diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index ad769ccd64..3156b302ee 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.58 2010/01/18 23:48:40 tbox Exp $ +# $Id: tests.sh,v 1.59 2010/06/03 03:13:32 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh @@ -904,6 +904,35 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` +echo "I:checking that we can sign a zone with out-of-zone records ($n)" +ret=0 +( +cd signer +RANDFILE=../random.data +zone=example +key1=`$KEYGEN -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone` +key2=`$KEYGEN -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone` +cat example.db.in $key1.key $key2.key > example.db +$SIGNER -o example -f example.db example.db > /dev/null 2>&1 +) || ret=1 +if [ $ret != 0 ]; then echo "I:failed"; fi +status=`expr $status + $ret` + +echo "I:checking that we can sign a zone (NSEC3) with out-of-zone records ($n)" +ret=0 +( +cd signer +RANDFILE=../random.data +zone=example +key1=`$KEYGEN -r $RANDFILE -a NSEC3RSASHA1 -b 1024 -n zone $zone` +key2=`$KEYGEN -r $RANDFILE -f KSK -a NSEC3RSASHA1 -b 1024 -n zone $zone` +cat example.db.in $key1.key $key2.key > example.db +$SIGNER -3 - -o example -f example.db example.db > /dev/null 2>&1 +grep "JIEIDARU68SM01LPOROGNS2AUEE8ERCP.example. 0 IN NSEC3 1 0 100 - JIEIDARU68SM01LPOROGNS2AUEE8ERCP A NS SOA RRSIG DNSKEY NSEC3PARAM" example.db > /dev/null +) || ret=1 +if [ $ret != 0 ]; then echo "I:failed"; fi +status=`expr $status + $ret` + # Run a minimal update test if possible. This is really just # a regression test for RT #2399; more tests should be added. From 01f93d7ceb49f0417a9f38f1eebcdaca37aaa71f Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 3 Jun 2010 03:21:50 +0000 Subject: [PATCH 32/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 3962f315e4..52358fb9e7 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.263 2010/06/02 02:23:20 tbox Exp $ +# $Id: SRCID,v 1.264 2010/06/03 03:21:50 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/06/02 02:23:20 $ )" +SRCID="( $Date: 2010/06/03 03:21:50 $ )" From 3a7b1fb32a27df5326f7fea318f68703c0de7e2e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2010 03:55:07 +0000 Subject: [PATCH 33/37] add kerberosv5/krb5.h to search list --- config.h.in | 5 ++++- configure | 11 ++++++----- configure.in | 6 +++--- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/config.h.in b/config.h.in index eca4f9a830..f1b531aa11 100644 --- a/config.h.in +++ b/config.h.in @@ -16,7 +16,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: config.h.in,v 1.127 2010/06/03 02:29:58 marka Exp $ */ +/* $Id: config.h.in,v 1.135 2010/09/29 04:03:00 marka Exp $ */ /*! \file */ @@ -193,6 +193,9 @@ int sigwait(const unsigned int *set, int *sig); /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_KERBEROSV5_KRB5_H + /* Define to 1 if you have the header file. */ #undef HAVE_KRB5_H diff --git a/configure b/configure index 7cd23172f0..e16746ea04 100755 --- a/configure +++ b/configure @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # -# $Id: configure,v 1.478 2010/06/03 02:29:58 marka Exp $ +# $Id: configure,v 1.479 2010/06/03 03:55:07 marka Exp $ # # Portions Copyright (C) 1996-2001 Nominum, Inc. # @@ -29,7 +29,7 @@ # 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. -# From configure.in Revision: 1.495 . +# From configure.in Revision: 1.496 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.62. # @@ -23909,7 +23909,8 @@ $as_echo "$as_me: error: gssapi.h not found" >&2;} -for ac_header in krb5.h krb5/krb5.h + +for ac_header in krb5.h krb5/krb5.h kerberosv5/krb5.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then @@ -24055,8 +24056,8 @@ done if test "$ISC_PLATFORM_KRB5HEADER" = ""; then - { { $as_echo "$as_me:$LINENO: error: gssapi.h not found" >&5 -$as_echo "$as_me: error: gssapi.h not found" >&2;} + { { $as_echo "$as_me:$LINENO: error: krb5.h not found" >&5 +$as_echo "$as_me: error: krb5.h not found" >&2;} { (exit 1); exit 1; }; } fi diff --git a/configure.in b/configure.in index a804c8c84d..4ae8f27af7 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.495 $) +AC_REVISION($Revision: 1.496 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.59) @@ -785,11 +785,11 @@ case "$use_gssapi" in AC_MSG_ERROR([gssapi.h not found]) fi - AC_CHECK_HEADERS(krb5.h krb5/krb5.h, + AC_CHECK_HEADERS(krb5.h krb5/krb5.h kerberosv5/krb5.h, [ISC_PLATFORM_KRB5HEADER="#define ISC_PLATFORM_KRB5HEADER <$ac_header>"]) if test "$ISC_PLATFORM_KRB5HEADER" = ""; then - AC_MSG_ERROR([gssapi.h not found]) + AC_MSG_ERROR([krb5.h not found]) fi CPPFLAGS="$saved_cppflags" From 9f9ba278d76f2d6bc999ca1ff463123b4bc63c16 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 3 Jun 2010 04:23:42 +0000 Subject: [PATCH 34/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index 52358fb9e7..ea3b75852b 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.264 2010/06/03 03:21:50 tbox Exp $ +# $Id: SRCID,v 1.265 2010/06/03 04:23:42 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/06/03 03:21:50 $ )" +SRCID="( $Date: 2010/06/03 04:23:42 $ )" From b7bc86a4d3d78fae33577682cea7d1449abb7b33 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2010 05:23:27 +0000 Subject: [PATCH 35/37] 2912. [func] Windows clients don't like UPDATE responses that clear the zone section. [RT #20986] --- CHANGES | 3 +++ lib/dns/message.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 2356f60477..db87ed2d74 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2912. [func] Windows clients don't like UPDATE responses that clear + the zone section. [RT #20986] + 2911. [bug] dnssec-signzone didn't handle out of zone records well. [RT #21367] diff --git a/lib/dns/message.c b/lib/dns/message.c index 3bb5eda990..8eac143f52 100644 --- a/lib/dns/message.c +++ b/lib/dns/message.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: message.c,v 1.253 2010/05/13 00:40:46 marka Exp $ */ +/* $Id: message.c,v 1.254 2010/06/03 05:23:27 marka Exp $ */ /*! \file */ @@ -2527,7 +2527,9 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section) { if (msg->opcode != dns_opcode_query && msg->opcode != dns_opcode_notify) want_question_section = ISC_FALSE; - if (want_question_section) { + if (msg->opcode == dns_opcode_update) + first_section = DNS_SECTION_ADDITIONAL; + else if (want_question_section) { if (!msg->question_ok) return (DNS_R_FORMERR); first_section = DNS_SECTION_ANSWER; From b48dc1327ba7125f71e98cc3f4ecfedcfa84d353 Mon Sep 17 00:00:00 2001 From: Automatic Updater Date: Thu, 3 Jun 2010 06:18:01 +0000 Subject: [PATCH 36/37] update --- doc/private/SRCID | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/private/SRCID b/doc/private/SRCID index ea3b75852b..7a62c0109e 100644 --- a/doc/private/SRCID +++ b/doc/private/SRCID @@ -1,6 +1,6 @@ -# $Id: SRCID,v 1.265 2010/06/03 04:23:42 tbox Exp $ +# $Id: SRCID,v 1.266 2010/06/03 06:18:01 tbox Exp $ # # This file must follow /bin/sh rules. It is imported directly via # configure. # -SRCID="( $Date: 2010/06/03 04:23:42 $ )" +SRCID="( $Date: 2010/06/03 06:18:01 $ )" From 10acc637700b357d8b2a638af4b93df6fb193b36 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 3 Jun 2010 06:29:03 +0000 Subject: [PATCH 37/37] 2911. [bug] dnssec-signzone didn't handle out of zone records well. [RT #21367] --- bin/tests/system/dnssec/signer/example.db.in | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bin/tests/system/dnssec/signer/example.db.in diff --git a/bin/tests/system/dnssec/signer/example.db.in b/bin/tests/system/dnssec/signer/example.db.in new file mode 100644 index 0000000000..dca0482f9b --- /dev/null +++ b/bin/tests/system/dnssec/signer/example.db.in @@ -0,0 +1,21 @@ +; Copyright (C) 2010 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: example.db.in,v 1.2 2010/06/03 06:29:03 marka Exp $ +$TTL 60 +example. 60 IN SOA example. . 0 0 0 0 0 +example. 60 IN NS example. +example. 60 IN A 1.2.3.4 +; out of zone record +out-of-zone. 60 IN A 1.2.3.4