Subject: pkg/11469: random(4) patch for cyrus-sasl
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@cjones.org>
List: netbsd-bugs
Date: 11/11/2000 17:56:13
>Number:         11469
>Category:       pkg
>Synopsis:       random(4) patch for cyrus-sasl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 11 17:56:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jones
>Release:        <NetBSD-current source date>pkgsrc from 26 Oct 2000
>Organization:
	
>Environment:
	
System: NetBSD grog.cjones.org 1.5_BETA NetBSD 1.5_BETA (GROG) #0: Mon Oct 30 23:03:31 MST 2000 chris@grog.cjones.org:/usr/src/sys/arch/i386/compile/GROG i386


>Description:
The cyrus-sasl uses a random number generator for its
challenge-response authentication.  It uses /dev/random for these
random numbers.  On a quiescent or low-activity system, imapd will
block indefinitely waiting for entropy, which leaves the user
wondering why they can't type in their password yet.  These two
patches make it use /dev/urandom instead.

Tested on this machine, but serving only two IMAP users.
>How-To-Repeat:
See above.
>Fix:
--- config.h.in.orig	Fri Nov 10 07:57:15 2000
+++ config.h.in	Fri Nov 10 08:09:39 2000
@@ -186,7 +186,7 @@
 
 /* location of the random number generator */
 #ifndef DEV_RANDOM
-#define DEV_RANDOM "/dev/random"
+#define DEV_RANDOM "/dev/urandom"
 #endif
 
 /* Make Solaris happy... */


--- acconfig.h.orig	Fri Nov 10 07:57:09 2000
+++ acconfig.h	Fri Nov 10 08:09:33 2000
@@ -127,7 +127,7 @@
 
 /* location of the random number generator */
 #ifndef DEV_RANDOM
-#define DEV_RANDOM "/dev/random"
+#define DEV_RANDOM "/dev/urandom"
 #endif
 
 /* Make Solaris happy... */
>Release-Note:
>Audit-Trail:
>Unformatted: