Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Make named and the rest of BIND seed their RNG from /dev/ura...



details:   https://anonhg.NetBSD.org/src/rev/574cd213c03b
branches:  trunk
changeset: 330555:574cd213c03b
user:      tls <tls%NetBSD.org@localhost>
date:      Sun Jul 13 22:06:56 2014 +0000

description:
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.

diffstat:

 etc/rc.d/named                      |  4 ++--
 external/bsd/bind/dist/configure    |  2 +-
 external/bsd/bind/dist/configure.in |  2 +-
 external/bsd/bind/include/config.h  |  2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diffs (56 lines):

diff -r 4ff44162399f -r 574cd213c03b etc/rc.d/named
--- a/etc/rc.d/named    Sun Jul 13 21:54:46 2014 +0000
+++ b/etc/rc.d/named    Sun Jul 13 22:06:56 2014 +0000
@@ -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 @@
                ;;
        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 && 
diff -r 4ff44162399f -r 574cd213c03b external/bsd/bind/dist/configure
--- a/external/bsd/bind/dist/configure  Sun Jul 13 21:54:46 2014 +0000
+++ b/external/bsd/bind/dist/configure  Sun Jul 13 22:06:56 2014 +0000
@@ -14049,7 +14049,7 @@
                                devrandom=/dev/arandom
                                ;;
                        *)
-                               devrandom=/dev/random
+                               devrandom=/dev/urandom
                                ;;
                esac
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $devrandom" >&5
diff -r 4ff44162399f -r 574cd213c03b external/bsd/bind/dist/configure.in
--- a/external/bsd/bind/dist/configure.in       Sun Jul 13 21:54:46 2014 +0000
+++ b/external/bsd/bind/dist/configure.in       Sun Jul 13 22:06:56 2014 +0000
@@ -930,7 +930,7 @@
                                devrandom=/dev/arandom
                                ;;
                        *)
-                               devrandom=/dev/random
+                               devrandom=/dev/urandom
                                ;;
                esac
                AC_MSG_RESULT($devrandom)
diff -r 4ff44162399f -r 574cd213c03b external/bsd/bind/include/config.h
--- a/external/bsd/bind/include/config.h        Sun Jul 13 21:54:46 2014 +0000
+++ b/external/bsd/bind/include/config.h        Sun Jul 13 22:06:56 2014 +0000
@@ -132,7 +132,7 @@
 #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



Home | Main Index | Thread Index | Old Index