From owner-freebsd-arch@FreeBSD.ORG Sat Apr 7 20:57:38 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C919D16A405; Sat, 7 Apr 2007 20:57:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 79BC613C4C5; Sat, 7 Apr 2007 20:57:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l37KsSMI021677; Sat, 7 Apr 2007 14:54:28 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 07 Apr 2007 14:54:37 -0600 (MDT) Message-Id: <20070407.145437.1021576786.imp@bsdimp.com> To: ceri@submonkey.net From: "M. Warner Losh" In-Reply-To: <20070407203524.GM90410@submonkey.net> References: <20070407202846.GK90410@submonkey.net> <20070407203130.GA8667@xor.obsecurity.org> <20070407203524.GM90410@submonkey.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 07 Apr 2007 14:54:28 -0600 (MDT) Cc: freebsd-arch@freebsd.org, pjd@freebsd.org, kris@obsecurity.org Subject: Re: Host ID. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 20:57:38 -0000 In message: <20070407203524.GM90410@submonkey.net> Ceri Davies writes: : On Sat, Apr 07, 2007 at 04:31:30PM -0400, Kris Kennaway wrote: : > On Sat, Apr 07, 2007 at 09:28:46PM +0100, Ceri Davies wrote: : > > On Sat, Apr 07, 2007 at 05:21:25PM +0200, Julien Gabel wrote: : > > > >There's even a business [1] selling software to change : > > > >Solaris hostid for ?49. Should I squat freebsdhostid.com? :) : > > > > : > > > >[1] http://www.solarishostid.com/ : > > > : > > > For free, you generally can fake it by rewriting the gethostid : > > > function along with the use : > > > of ${LD_PRELOAD}; or use DTrace if using a Solaris 10 system :) : > > : > > While thinking along these lines, what will we do on sparc64 systems, : > > which will generally print a hostid on the console at boot time which : > > will be significantly different to the one that we'll be presenting : > > within FreeBSD on those systems? : > > : > > I suspect that this is just a documentation issue, but it would be : > > somewhat confusing. : > : > Presumably on systems that have a real host id we can just use that :) : : I thought that, but then Pawwel said he'd like it to work the same : across all systems; quite what that means is where the rub lies :) I'm still of the opinion that using the real one and falling back if that isn't available is consistant with other places we use the real thing, and fake it if we can't get to the real thing. It also, technically speaking, is the same on all systems... Warner