Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2004 15:15:54 -0700
From:      Sean Chittenden <sean@chittenden.org>
To:        rc@FreeBSD.org
Subject:   rc.d/sshd entropy seeded detection not correct...
Message-ID:  <1B7E7779-2541-11D9-B8F6-000A95C705DC@chittenden.org>

next in thread | raw e-mail | index | archive | help

--Apple-Mail-1-3470619
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Simple patch, just wondering if this was intentional.  Looks like a bug 
to me and causes a headache/5min delay for startup on fresh installs.  
I'd like to get this into RELENG_5, maybe 5_3 if people agree its a 
bug.  I think it is and caused me quite a panic when the box didn't 
come up in a timely manner.  -sc


--Apple-Mail-1-3470619
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	x-unix-mode=0644;
	name="patch.txt"
Content-Disposition: attachment;
	filename=patch.txt

Index: sshd
===================================================================
RCS file: /home/ncvs/src/etc/rc.d/sshd,v
retrieving revision 1.7
diff -u -r1.7 sshd
--- sshd	7 Oct 2004 13:55:26 -0000	1.7
+++ sshd	23 Oct 2004 21:47:12 -0000
@@ -22,7 +22,7 @@
 {
 	(
 	seeded=`sysctl -n kern.random.sys.seeded 2>/dev/null`
-	if [ "${seeded}" != "" ] ; then
+	if [ "${seeded}" != "1" ] ; then
 		warn "Setting entropy source to blocking mode."
 		echo "===================================================="
 		echo "Type a full screenful of random junk to unblock"

--Apple-Mail-1-3470619
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed



-- 
Sean Chittenden
--Apple-Mail-1-3470619--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B7E7779-2541-11D9-B8F6-000A95C705DC>