Date: Sun, 31 Mar 2013 20:45:09 +0200 From: Dirk Engling <erdgeist@erdgeist.org> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: freebsd-jail@freebsd.org Subject: Re: rc.d/jail and jail.conf Message-ID: <51588435.2010400@erdgeist.org> In-Reply-To: <51574D3F.9040300@quip.cz> References: <515721F8.9090202@erdgeist.org> <51574D3F.9040300@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51588435.2010400>