From owner-freebsd-current Sun Feb 16 2:34:37 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F34337B401 for ; Sun, 16 Feb 2003 02:34:35 -0800 (PST) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68A1143FBD for ; Sun, 16 Feb 2003 02:34:34 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd01.sul.t-online.de by mailout05.sul.t-online.com with smtp id 18kM7y-0001C1-0B; Sun, 16 Feb 2003 11:34:30 +0100 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[217.229.216.98]) by fmrl01.sul.t-online.com with esmtp id 18kM7t-17iRm4C; Sun, 16 Feb 2003 11:34:25 +0100 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) by Andro-Beta.Leidinger.net (8.12.6/8.12.6) with ESMTP id h1GAYO8Z031862; Sun, 16 Feb 2003 11:34:24 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.7/8.12.7) with SMTP id h1GAYOSE001050; Sun, 16 Feb 2003 11:34:24 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Sun, 16 Feb 2003 11:34:24 +0100 From: Alexander Leidinger To: Gordon Tetlow Cc: current@FreeBSd.org Subject: Re: named & chroot & rcNG & devfs Message-Id: <20030216113424.4312120f.Alexander@Leidinger.net> In-Reply-To: <20030214173157.GF83215@roark.gnf.org> References: <20030211185931.0d37ef82.Alexander@Leidinger.net> <20030214173157.GF83215@roark.gnf.org> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 14 Feb 2003 09:31:57 -0800 Gordon Tetlow wrote: > On Tue, Feb 11, 2003 at 06:59:31PM +0100, Alexander Leidinger wrote: > > Hi, > > > > /etc/rc.d/named copies /dev with pax to the named chroot directory. This > > is obviously wrong with devfs, isn't it? > > You should read the script a little closer. That code path is only taken > on NetBSD. ---snip--- case ${OSTYPE} in FreeBSD) ! checkyesno named_rcng && return 0 # Is the user using a sandbox? if [ -z "$named_chrootdir" ]; then rc_flags="-u $nuser -g $ngroup $rc_flags" return 0 fi # Do the following checks only if the user wants them done checkyesno named_chroot_autoupdate && chroot_autoupdate ;; ---snip--- I read this as: If there's a non null named_chrootdir, then check if we want the autoupdate, else just run with user/group. BTW.: What does a '!' as the first character of a command in a /bin/sh script mean (I know what it means in zsh/tcsh/bash when used interactively, but the above use of it is unknown to me)? Bye, Alexander. -- Yes, I've heard of "decaf." What's your point? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message