From owner-freebsd-jail@FreeBSD.ORG Sat Mar 30 23:06:50 2013 Return-Path: Delivered-To: freebsd-jail@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 EFE7C756 for ; Sat, 30 Mar 2013 23:06:50 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id B1A0EF61 for ; Sat, 30 Mar 2013 23:06:50 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3A11628431; Sun, 31 Mar 2013 00:06:49 +0100 (CET) Received: from [192.168.1.2] (ip-89-177-49-222.net.upcbroadband.cz [89.177.49.222]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6C6B02842D; Sun, 31 Mar 2013 00:06:48 +0100 (CET) Message-ID: <51577007.1080707@quip.cz> Date: Sun, 31 Mar 2013 00:06:47 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Dirk Engling Subject: Re: rc.d/jail and jail.conf References: <515721F8.9090202@erdgeist.org> <51574D3F.9040300@quip.cz> <515758C9.9080302@erdgeist.org> In-Reply-To: <515758C9.9080302@erdgeist.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Mar 2013 23:06:51 -0000 Dirk Engling wrote: > On 30.03.13 21:38, Miroslav Lachman wrote: > >> There is a way, you should use flags. I discussed this topic with bz@ >> few years ago and this is the official recommendation how newly added >> features should be used without changes in rc.d/jail >> >> jail_myjail_flags="-l -U root -n myjail" > > Thanks, I need a switch, since -n only was introduced in 9.1, is it > there to stay? jail -n is there for a long time. I have it on an old 7.3 machine too. On 9.1 I read this in man page: -n jailname Set the jail's name. This is deprecated and is equivalent to the name parameter. So in 9.1 (and 8.x) you can use `jail name=myjail` And as 7.x is EOL, there is only 8.3 and 9.1 as supported releases (9.0 EOL date is 2013-03-31), you can go with name=myjail syntax. > Out of curiosity, why doesn't the jailname default to the hostname, if > none is given? Jail's hostname doesn't need to be unique. And AFAIK jail name on FreeBSD 7.x doesn't need to be unique too. But for 8.3 and 9.x it is used as unique identifier. If name is not set, it is assumed to be the same as JID. Miroslav Lachman