From owner-freebsd-current@FreeBSD.ORG Mon Mar 28 22:35:15 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BDA316A4CE for ; Mon, 28 Mar 2005 22:35:15 +0000 (GMT) Received: from storm.uk.FreeBSD.org (storm.uk.FreeBSD.org [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9193543D49 for ; Mon, 28 Mar 2005 22:35:14 +0000 (GMT) (envelope-from mark@grondar.org) Received: from storm.uk.FreeBSD.org (uucp@localhost [127.0.0.1]) by storm.uk.FreeBSD.org (8.13.3/8.13.3) with ESMTP id j2SMZCbu053510; Mon, 28 Mar 2005 23:35:12 +0100 (BST) (envelope-from mark@grondar.org) Received: (from uucp@localhost)j2SMZBUk053508; Mon, 28 Mar 2005 23:35:11 +0100 (BST) (envelope-from mark@grondar.org) Received: from grondar.org (localhost [127.0.0.1]) by grovel.grondar.org (8.13.3/8.13.1) with ESMTP id j2SMXIsd000806; Mon, 28 Mar 2005 23:33:18 +0100 (BST) (envelope-from mark@grondar.org) Message-Id: <200503282233.j2SMXIsd000806@grovel.grondar.org> To: Brooks Davis From: Mark Murray In-Reply-To: Your message of "Mon, 28 Mar 2005 14:08:27 -0800." <20050328220827.GA26134@odin.ac.hmc.edu> Date: Mon, 28 Mar 2005 23:33:18 +0100 Sender: mark@grondar.org cc: freebsd-current@FreeBSD.ORG cc: Ed Maste Subject: Re: Random source seeding and /etc/rc.d/sshd host key generation X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 22:35:15 -0000 Brooks Davis writes: > > I'm curious if checking the seeded sysctl against "" is intentional; > > it seems $seeded will always be non-null. Since user_reseed only > > gets called if the host keys don't exist it probably won't be much > > of an issue in practice, but it seems random junk will be requested > > on the first boot even if the entropy source is already seeded. > > I believe the goal of the script is to not trust the system entropy this > time (since it's almost certainly junk.) I think the check is just to > avoid this code if the sysctl doesn't exist. Close. Not all RNG's use the Yarrow-based generator. This is a test for the presence of the Yarrow PRNG. M -- Mark Murray iumop ap!sdn w,I idlaH