From owner-freebsd-arch@FreeBSD.ORG Wed Aug 7 18:52:36 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B2B2A9CA for ; Wed, 7 Aug 2013 18:52:36 +0000 (UTC) (envelope-from peter@wemm.org) Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [IPv6:2607:f8b0:400c:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F1DC207F for ; Wed, 7 Aug 2013 18:52:36 +0000 (UTC) Received: by mail-ve0-f180.google.com with SMTP id pb11so2250302veb.11 for ; Wed, 07 Aug 2013 11:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=3GktjJ8TKDNtNgHYKRJ+d19m/UdxdTVZwRmItNTj0d8=; b=LDwn5KUf1aOtQI3HyILdreh9By3F+L23riRiF7qMn3xL8s9zyaU61+wlD2DpJGczjh Rwl/taa/VB4CaeF1qitfIzk7Pi2069oU5Uu+/xOZLuYxfB5yXC7s8hKHp8m4iCb1zYhq v7WyqDWCzIkgFkVWwhZ5pIT/nQmdJ7hdvcQ4I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=3GktjJ8TKDNtNgHYKRJ+d19m/UdxdTVZwRmItNTj0d8=; b=RImnJBXAVoN8MvDWij9SUvxFQgOPhOD+9KIAwLB2Ag4rqFrHHLt0aoaXjYPh/KZlCL pNr0z7rYLTD7sOI4828KyTa6EFek9pnJLypMZ3YyuPozuhsffXzrzjDdETh9zh3q7hX1 MkkAnh5EZN3475fPJz7Fa2yhGdaHhlxuuFR9DRjM9qK6/NqdBLBpKobOEqK81LnZVi0z LFkAlCm2yHwnIi1Yp2KEZavosXCZKSc0NsIocZwzVM4C9QtGx7nWWwSs74vqyDiEe3m7 ft0YpsjSVphL/b3K1if05C0Ex4kqUr1Zq+KPGKU5f2Ig1bwr8hHXi6nNzqa+gQhQGpsg H+Ag== X-Gm-Message-State: ALoCoQk6AhZVr4Oh1cRehz40qvRqQCNhjef1yGzbiTGwzTBDhhpsFSKRUBVZbV2KVNEeuXoh7UCB MIME-Version: 1.0 X-Received: by 10.52.37.8 with SMTP id u8mr980048vdj.73.1375901555593; Wed, 07 Aug 2013 11:52:35 -0700 (PDT) Received: by 10.220.167.74 with HTTP; Wed, 7 Aug 2013 11:52:35 -0700 (PDT) In-Reply-To: <20130807183112.GA79319@dragon.NUXI.org> References: <20130731104009.GG59509@rincewind.paeps.cx> <20130807183112.GA79319@dragon.NUXI.org> Date: Wed, 7 Aug 2013 11:52:35 -0700 Message-ID: Subject: Re: random(4) plugin infrastructure for mulitple RNG in a modular fashion From: Peter Wemm To: obrien@freebsd.org, Philip Paeps , secteam@freebsd.org, freebsd-arch@freebsd.org, Arthur Mesh Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 18:52:36 -0000 On Wed, Aug 7, 2013 at 11:31 AM, David O'Brien wrote: [..] >> Please change YARROW_RNG to >> RNG_NO_YARROW or something similar and keep it in by default. > > Given the direction of the patch, I'm don't know how to cleanly inverse > logic this. If you were going to go this route you would put "options YARROW_RNG" into $ARCH/conf/DEFAULTS and let people disable it with 'nooptions YARROW_RNG'. 'device random' should probably be a default option alongside it too though given how badly things fail without it. Especially given: > * If the kernel doesn't have any random_adaptor adapters present then the > creation of /dev/random is postponed until next random_adaptor is kldload'ed. Postponing can't really be done. That's a good way to remotely brick a machine. I'd be more inclined to have it be a panic offense if 'device random' is present with no sources. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV UTF-8: for when a ' just won\342\200\231t do. ZFS must be the bacon of file systems. "everything's better with ZFS"