Module Name: src Committed By: tls Date: Sun Jul 13 22:06:56 UTC 2014
Modified Files: src/etc/rc.d: named src/external/bsd/bind/dist: configure configure.in src/external/bsd/bind/include: config.h Log Message: Make named and the rest of BIND seed their RNG from /dev/urandom, not /dev/random. Better would be to rip the enormous gonkulating RNG machinery out of libisc entirely. Later. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/etc/rc.d/named cvs rdiff -u -r1.1.1.13 -r1.2 src/external/bsd/bind/dist/configure cvs rdiff -u -r1.4 -r1.5 src/external/bsd/bind/dist/configure.in cvs rdiff -u -r1.13 -r1.14 src/external/bsd/bind/include/config.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/rc.d/named diff -u src/etc/rc.d/named:1.24 src/etc/rc.d/named:1.25 --- src/etc/rc.d/named:1.24 Tue Jul 8 07:04:07 2014 +++ src/etc/rc.d/named Sun Jul 13 22:06:56 2014 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: named,v 1.24 2014/07/08 07:04:07 spz Exp $ +# $NetBSD: named,v 1.25 2014/07/13 22:06:56 tls Exp $ # # PROVIDE: named @@ -101,7 +101,7 @@ named_precmd() ;; esac - for i in null random; do + for i in null random urandom; do if [ ! -c "${named_chrootdir}/dev/$i" ]; then rm -f "${named_chrootdir}/dev/$i" (cd /dev && Index: src/external/bsd/bind/dist/configure diff -u src/external/bsd/bind/dist/configure:1.1.1.13 src/external/bsd/bind/dist/configure:1.2 --- src/external/bsd/bind/dist/configure:1.1.1.13 Tue Jul 8 04:44:59 2014 +++ src/external/bsd/bind/dist/configure Sun Jul 13 22:06:56 2014 @@ -14049,7 +14049,7 @@ $as_echo "unspecified" >&6; } devrandom=/dev/arandom ;; *) - devrandom=/dev/random + devrandom=/dev/urandom ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5 Index: src/external/bsd/bind/dist/configure.in diff -u src/external/bsd/bind/dist/configure.in:1.4 src/external/bsd/bind/dist/configure.in:1.5 --- src/external/bsd/bind/dist/configure.in:1.4 Tue Jul 8 05:43:37 2014 +++ src/external/bsd/bind/dist/configure.in Sun Jul 13 22:06:56 2014 @@ -930,7 +930,7 @@ case "$use_randomdev" in devrandom=/dev/arandom ;; *) - devrandom=/dev/random + devrandom=/dev/urandom ;; esac AC_MSG_RESULT($devrandom) Index: src/external/bsd/bind/include/config.h diff -u src/external/bsd/bind/include/config.h:1.13 src/external/bsd/bind/include/config.h:1.14 --- src/external/bsd/bind/include/config.h:1.13 Tue Jul 8 05:55:33 2014 +++ src/external/bsd/bind/include/config.h Sun Jul 13 22:06:56 2014 @@ -132,7 +132,7 @@ int sigwait(const unsigned int *set, int #endif /** SHUTUP_STDARG_CAST && __GNUC__ */ /** define if the system has a random number generating device */ -#define PATH_RANDOMDEV "/dev/random" +#define PATH_RANDOMDEV "/dev/urandom" /** define if pthread_attr_getstacksize() is available */ #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1