From owner-freebsd-questions@FreeBSD.ORG Sat Jul 13 04:13:03 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C828FD8 for ; Sat, 13 Jul 2013 04:13:03 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [IPv6:2001:44b8:8060:ff02:300:1:2:7]) by mx1.freebsd.org (Postfix) with ESMTP id 611C11F40 for ; Sat, 13 Jul 2013 04:13:03 +0000 (UTC) Received: from ppp247-71.static.internode.on.net (HELO leader.local) ([203.122.247.71]) by ipmail07.adl2.internode.on.net with ESMTP; 13 Jul 2013 13:43:01 +0930 Message-ID: <51E0D3C9.3020505@ShaneWare.Biz> Date: Sat, 13 Jul 2013 13:42:57 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130516 Thunderbird/17.0.6 MIME-Version: 1.0 To: Frank Leonhardt Subject: Re: jls usage References: <51DF59B1.4020107@a1poweruser.com> <13CA24D6AB415D428143D44749F57D7201FBF9CF@ltcfiswmsgmb21> <51DFCDD2.2010104@fjl.co.uk> <13CA24D6AB415D428143D44749F57D7201FC19A4@ltcfiswmsgmb21> <51E01A22.7030306@fjl.co.uk> <51E021AA.5030905@fjl.co.uk> <51E02729.7070203@fjl.co.uk> In-Reply-To: <51E02729.7070203@fjl.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 04:13:03 -0000 On 13/07/2013 01:26, Frank Leonhardt wrote: > Okay - answering my own question and solved... It's a bug (or is that a > feature?). > > In /etc/rc.d/jail line 647 it currently reads: > > eval ${_setfib} jail ${_flags} -i ${_rootdir} > ${_hostname} \ > \"${_addrl}\" ${_exec_start} > ${_tmp_jail} 2>&1 \ > > And it should (IMHO) read: > > eval ${_setfib} jail ${_flags} -n ${_jail} -i > ${_rootdir} ${_hostname} \ > \"${_addrl}\" ${_exec_start} > ${_tmp_jail} 2>&1 \ > > Once changed, everything works find and your jails are named as per the > rc.conf file definitions. Can anyone think of a reason for NOT fixing this? Go with bug ;-) - fix (improvement?) is working it's way through. You mentioned running 8.2 so I wondered if it has changed. If you look through the source tree you will find in 8.4 that line has the -n ${_jail} addition plus some other extras. Looks like it showed up in stable/8 at r242083 as part of a larger improvement.