From owner-freebsd-stable@FreeBSD.ORG Fri Jan 13 01:16:41 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ABEE16A41F for ; Fri, 13 Jan 2006 01:16:41 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id F083D43D48 for ; Fri, 13 Jan 2006 01:16:40 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 13528 invoked by uid 399); 13 Jan 2006 01:16:40 -0000 Received: from localhost (HELO master) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 13 Jan 2006 01:16:40 -0000 Date: Thu, 12 Jan 2006 17:16:38 -0800 (PST) From: Doug Barton To: Brooks Davis In-Reply-To: <20060110191949.GA12137@odin.ac.hmc.edu> Message-ID: <20060112171152.D51718@znfgre.qbhto.arg> References: <43C3FE28.6080505@FreeBSD.org> <20060110191949.GA12137@odin.ac.hmc.edu> Organization: http://www.FreeBSD.org/ X-OpenPGP-Key-ID: 0xD5B2F0FB X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Charles Sprickman , stable@freebsd.org Subject: Re: recent rc changes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 01:16:41 -0000 On Tue, 10 Jan 2006, Brooks Davis wrote: > You definitely have to change things somehow in the jail case because > local scripts won't run until after early_late_divider shows up on the > list and in the jail case, the default never shows up. Sorry for my ignorance here, but does 'sysctl -n security.jail.jailed' only equal 1 if we are inside the jail? If so, then we could add something to that part of /etc/rc like this: if [ `/sbin/sysctl -n security.jail.jailed` -eq 1 ]; then skip="$skip -s nojail" if [ "$early_late_divider" = "mountcritlocal" ]; then early_late_divider=NETWORKING fi fi Since the jail test happens after we load_rc_config, this should work. Doug -- This .signature sanitized for your protection