From owner-freebsd-rc@FreeBSD.ORG Sat Oct 23 22:15:59 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B05FF16A4CE for ; Sat, 23 Oct 2004 22:15:59 +0000 (GMT) Received: from mail.trippynames.com (mail.trippynames.com [38.113.223.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C5C043D41 for ; Sat, 23 Oct 2004 22:15:59 +0000 (GMT) (envelope-from sean@chittenden.org) Received: from localhost (localhost [127.0.0.1]) by mail.trippynames.com (Postfix) with ESMTP id 31CA6A1F77 for ; Sat, 23 Oct 2004 15:15:59 -0700 (PDT) Received: from mail.trippynames.com ([127.0.0.1]) by localhost (rand.nxad.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 59870-10 for ; Sat, 23 Oct 2004 15:15:57 -0700 (PDT) Received: from [216.143.148.184] (unknown [216.143.148.184]) by mail.trippynames.com (Postfix) with ESMTP id CD98FA132C for ; Sat, 23 Oct 2004 15:15:57 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v619) To: rc@FreeBSD.org Message-Id: <1B7E7779-2541-11D9-B8F6-000A95C705DC@chittenden.org> Content-Type: multipart/mixed; boundary=Apple-Mail-1-3470619 From: Sean Chittenden Date: Sat, 23 Oct 2004 15:15:54 -0700 X-Mailer: Apple Mail (2.619) Subject: rc.d/sshd entropy seeded detection not correct... X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Oct 2004 22:15:59 -0000 --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--