From owner-freebsd-jail@FreeBSD.ORG Sun Mar 31 18:45:19 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 32C8769D for ; Sun, 31 Mar 2013 18:45:19 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [217.13.206.130]) by mx1.freebsd.org (Postfix) with ESMTP id 8355F9EC for ; Sun, 31 Mar 2013 18:45:18 +0000 (UTC) Received: (qmail 21761 invoked from network); 31 Mar 2013 18:45:09 -0000 Received: from elektropost.org (HELO elektropost.org) (erdgeist@erdgeist.org) by elektropost.org with CAMELLIA256-SHA encrypted SMTP; 31 Mar 2013 18:45:09 -0000 Message-ID: <51588435.2010400@erdgeist.org> Date: Sun, 31 Mar 2013 20:45:09 +0200 From: Dirk Engling User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: rc.d/jail and jail.conf References: <515721F8.9090202@erdgeist.org> <51574D3F.9040300@quip.cz> In-Reply-To: <51574D3F.9040300@quip.cz> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 31 Mar 2013 18:45:19 -0000 On 30.03.13 21:38, Miroslav Lachman wrote: > jail_myjail_flags="-l -U root -n myjail" When trying to pass a my hostname (foo.com) as jailname like that, jail(8) will complain jail: jail "foo" not found as it does not allow periods in the jailname. This seems like an unfortunate limitation, as I tend to name my jails after the fqdn they are being started as. FYI, the name=myjail form did not work, because rc.d/jail uses the path hostname [ip[,...]] command ... synopsis of the jail command, which fails, if it sees name=value params. So I guess, I am out of luck here, because users used to think of their jails as what they saw in the hostname field on jls. If I am writing tools that use jail_getid to map the jailname to the jid, it will never match that hostname and I also can not copy the hostname to the jailname. Is there a reason for '.' being the only excluded character in the jailname? erdgeist