From owner-freebsd-security@FreeBSD.ORG Mon Sep 3 20:17:05 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id E194D1065673; Mon, 3 Sep 2012 20:17:05 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from opti.dougb.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B216414D927; Mon, 3 Sep 2012 20:17:05 +0000 (UTC) Message-ID: <50451041.9070302@FreeBSD.org> Date: Mon, 03 Sep 2012 13:17:05 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: Ian Lepore References: <201208222337.q7MNbORo017642@svn.freebsd.org> <5043E449.8050005@FreeBSD.org> <1346638718.1140.573.camel@revolution.hippie.lan> In-Reply-To: <1346638718.1140.573.camel@revolution.hippie.lan> X-Enigmail-Version: 1.4.3 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Arthur Mesh , freebsd-security@freebsd.org, freebsd-rc@freebsd.org Subject: Re: svn commit: r239598 - head/etc/rc.d X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2012 20:17:06 -0000 On 09/02/2012 19:18, Ian Lepore wrote: > On Sun, 2012-09-02 at 15:57 -0700, Doug Barton wrote: >> The attached patch simplifies the script quite a bit, and restores the >> traditional order of running the "best effort" entropy first. I'm >> interested in what others think about this. (Note, the patch is easier >> to understand if you apply it and look at the resulting file.) > > I have a patchset somewhere that added the ability to supply an > alternate command to generate "best effort" entropy. The reason is that > the existing code on an embedded system with no realtime clock hardware > generates a sequence that sometimes differs by two full bytes from one > boot to the next. Often it's identical. Adding insult is the fact that > the existing sequence takes about 4-5 seconds on that platform. > > There just isn't much entropy available there, but I came up with a > command sequence that ran in about a second and generated more > differences on each boot. I'm interested in that patch. > I'm still interested in the ability to override the default best effort > generator with something else via entries in rc.conf; I'm not picky > about the mechanism for doing so. If there's any interest, I'll try to > find that old patch I had for it (which I never submitted for fear of > starting a "that's not good enough entropy" flame war). What would probably be useful is to determine what commands are "safe" to run on both kinds of systems and always run those. Then give some additional commands to run by default that can be overridden via an rc.conf flag. Doug -- I am only one, but I am one. I cannot do everything, but I can do something. And I will not let what I cannot do interfere with what I can do. -- Edward Everett Hale, (1822 - 1909)