Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2008 00:31:15 +1000
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Oliver Fromme <olli@fromme.com>
Cc:        Michael Reifenberger <mr@FreeBSD.org>, src-committers@FreeBSD.org, Pawel Jakub Dawidek <pjd@FreeBSD.org>, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, "Bjoern A. Zeeb" <bz@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c
Message-ID:  <20080529143115.GB24246@k7.mavetju>
In-Reply-To: <200805291416.m4TEGn5X066744@haluter.fromme.com>
References:  <20080529132242.J65662@maildrop.int.zabbadoz.net> <200805291416.m4TEGn5X066744@haluter.fromme.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 29, 2008 at 04:16:49PM +0200, Oliver Fromme wrote:
> Bjoern A. Zeeb wrote:
>  > On Thu, 29 May 2008, Oliver Fromme wrote:
>  > > I think that an admin who decides to use jexec with IP
>  > > numbers or hostnames should be expected to be aware that
>  > > there can be ambiguities, and that he should make sure
>  > > that his IP numbers and/or hostnames are unique.
>  > 
>  > I think that's a bad policy but ...
> 
> As it currently stands, the hostname is a pretty good
> property to identify a jail.  If the admin can guarantee
> that they're unique, it works very well.

I can, but can FreeBSD?

[~] root@field>jls
   JID  IP Address      Hostname                      Path
    21  202.83.176.10   mail1.barnet.com.au    /usr/jails/mail1.barnet.com.au
    19  202.83.178.78   mail5.barnet.com.au    /usr/jails/mail5.barnet.com.au
    18  202.83.178.80   dbmail1.barnet.com.au  /usr/jails/dbmail1.barnet.com.au
    16  202.83.178.77   ldap1.barnet.com.au    /usr/jails/ldap1.barnet.com.au
    15  202.83.176.13   mail2.barnet.com.au    /usr/jails/mail2.barnet.com.au
    14  202.83.178.78   mail5.barnet.com.au    /usr/jails/mail5.barnet.com.au
    13  202.83.178.83   ports                  /usr/jails/ports
    11  202.83.178.78   mail5.barnet.com.au    /usr/jails/mail5.barnet.com.au

Spot the three jails with 202.83.178.78... All caused by stopping
and starting of the jail.

Mind you, this is on a 6.3 machine which could have an unresolved
issue with regarding to these ghost jails.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080529143115.GB24246>