From owner-freebsd-arch@FreeBSD.ORG Fri Aug 9 01:33:50 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 51284AED; Fri, 9 Aug 2013 01:33:50 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 332FE2228; Fri, 9 Aug 2013 01:33:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r791XoeO037111; Fri, 9 Aug 2013 01:33:50 GMT (envelope-from obrien@freefall.freebsd.org) Received: (from obrien@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r791XmCe037108; Fri, 9 Aug 2013 01:33:48 GMT (envelope-from obrien) Date: Thu, 8 Aug 2013 18:33:46 -0700 From: "David O'Brien" To: "Simon J. Gerraty" Subject: Re: random(4) plugin infrastructure for mulitple RNG in a modular fashion Message-ID: <20130809013346.GG95000@dragon.NUXI.org> Mail-Followup-To: obrien@freebsd.org, "Simon J. Gerraty" , Mark R V Murray , Arthur Mesh , Steve Kargl , secteam@freebsd.org, freebsd-arch@freebsd.org References: <20130807182858.GA79286@dragon.NUXI.org> <20130807192736.GA7099@troutmask.apl.washington.edu> <5203968D.7060508@freebsd.org> <7018AAA9-0A88-430F-96B7-867E5F529B36@bsdimp.com> <50BE6942-CC39-413C-8E14-C6B93440901B@grondar.org> <20130808211657.GC95000@dragon.NUXI.org> <94E41175-EF09-47D1-9661-9AF04E8FA9A0@grondar.org> <20130808215853.2288458097@chaos.jnpr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130808215853.2288458097@chaos.jnpr.net> X-Operating-System: FreeBSD 10.0-CURRENT X-MUA-Host: dragon.NUXI.org X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Arthur Mesh , secteam@freebsd.org, Steve Kargl , Mark R V Murray , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2013 01:33:50 -0000 On Thu, Aug 08, 2013 at 02:58:53PM -0700, Simon Gerraty wrote: > If there are bread crumbs to show whether an RNG is present or not in > the output from config, it should be feasible to fail the build > which as others have noted would be a "good thing"[TM] vs producing a > toxic kernel. I may have misunderstood what you're saying. But if not, you're not allowing for one using .ko's to have this functionality. How do I fail the build if I want to have 'device random' but use some external provided RNG thru a kernel module? The original changeset supported that. Or for what ever reason I want to have the choice of RNG left up to which base kernel module I load? 'sysctl kern.random.adaptors' showing an empty list does provide a bread crumb. /etc/rc.d/initrandom could certainly check this value and complain loudly. -- -- David (obrien@FreeBSD.org)