From owner-cvs-all@FreeBSD.ORG Thu May 29 14:31:18 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF353106567A; Thu, 29 May 2008 14:31:18 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id 4B3238FC28; Thu, 29 May 2008 14:31:17 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id A2DB92218AAA; Fri, 30 May 2008 00:31:16 +1000 (EST) X-Viruscan-Id: <483EBE340001097339BAA6@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id 4E6E421B32A9; Fri, 30 May 2008 00:31:16 +1000 (EST) Received: from k7.mavetju (k7.mavetju.org [10.251.1.18]) by mail5auth.barnet.com.au (Postfix) with ESMTP id E190B22189E1; Fri, 30 May 2008 00:31:15 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 18F641BE; Fri, 30 May 2008 00:31:15 +1000 (EST) Date: Fri, 30 May 2008 00:31:15 +1000 From: Edwin Groothuis To: Oliver Fromme Message-ID: <20080529143115.GB24246@k7.mavetju> References: <20080529132242.J65662@maildrop.int.zabbadoz.net> <200805291416.m4TEGn5X066744@haluter.fromme.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200805291416.m4TEGn5X066744@haluter.fromme.com> User-Agent: Mutt/1.4.2.3i Cc: Michael Reifenberger , src-committers@FreeBSD.org, Pawel Jakub Dawidek , cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, "Bjoern A. Zeeb" Subject: Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2008 14:31:18 -0000 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/