From owner-freebsd-current@FreeBSD.ORG Sun Mar 25 15:12:43 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73D3916A401; Sun, 25 Mar 2007 15:12:43 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.freebsd.org (Postfix) with ESMTP id E622C13C43E; Sun, 25 Mar 2007 15:12:42 +0000 (UTC) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw6.york.ac.uk (mail-gw6.york.ac.uk [144.32.129.26]) by mail-gw1.york.ac.uk (8.13.6/8.13.6) with ESMTP id l2PEYH4G004343; Sun, 25 Mar 2007 15:34:17 +0100 (BST) Received: from ury.york.ac.uk ([144.32.108.81]) by mail-gw6.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1HVTnU-0005pl-W6; Sun, 25 Mar 2007 15:34:16 +0100 Received: from ury.york.ac.uk (localhost.york.ac.uk [127.0.0.1]) by ury.york.ac.uk (8.13.8/8.13.8) with ESMTP id l2PEYGat085664; Sun, 25 Mar 2007 15:34:16 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from localhost (gavin@localhost) by ury.york.ac.uk (8.13.8/8.13.8/Submit) with ESMTP id l2PEY93k085614; Sun, 25 Mar 2007 15:34:14 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: ury.york.ac.uk: gavin owned process doing -bs Date: Sun, 25 Mar 2007 15:34:09 +0100 (BST) From: Gavin Atkinson X-X-Sender: gavin@ury.york.ac.uk To: "Wojciech A. Koszek" In-Reply-To: <20070324233307.GA93841@FreeBSD.czest.pl> Message-ID: <20070325153013.E77473@ury.york.ac.uk> References: <20070324113739.GA41119@ravenloft.kiev.ua> <20070324135333.GA86105@FreeBSD.czest.pl> <20070324153108.P4956@fledge.watson.org> <20070324220041.GI847@turion.vk2pj.dyndns.org> <20070324233307.GA93841@FreeBSD.czest.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Cc: Robert Watson , Peter Jeremy , freebsd-current@freebsd.org, Alex Kozlov Subject: Re: Improved INCLUDE_CONFIG_FILE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 25 Mar 2007 15:12:43 -0000 On Sat, 24 Mar 2007, Wojciech A. Koszek wrote: > On Sun, Mar 25, 2007 at 08:00:41AM +1000, Peter Jeremy wrote: >> On 2007-Mar-24 15:32:00 +0100, Robert Watson wrote: >>> On Sat, 24 Mar 2007, Wojciech A. Koszek wrote: >>>> I'd like to have this enabled by default, and I know there should be no >>>> strong objections. >>> >>> I agree -- the memory used by it is very small compared to the amount of >>> memory in modern systems, and the potential administrative benefit is very >>> large. As long as it remains an option, the embedded folk can turn it off >>> easily. >> Ideally, we would include it in a .comment section that wasn't loaded. >> Unfortunately my ELF-foo isn't up to this (I've tried something similar >> many years ago and couldn't get the linker to DWIW). > > In my current implementation, kernel configuration content is converted > to the string and is actually put into separate ELF section. However, > it's not .comment but a loadable section, since otherwise you wouldn't > be able to obtain the configuration of a running system. strings `sysctl -n kern.bootfile` | grep ^___ | sed -e 's/^___//' should still work if it was in a .comment section Gavin