From owner-cvs-all@FreeBSD.ORG Mon May 26 14:24:59 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 22A0F1065679; Mon, 26 May 2008 14:24:59 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by mx1.freebsd.org (Postfix) with ESMTP id C94578FC2A; Mon, 26 May 2008 14:24:58 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id BA35E21CF19; Mon, 26 May 2008 16:07:55 +0200 (CEST) Received: from localhost (unknown [192.168.1.157]) by mail.m-online.net (Postfix) with ESMTP id 40BF090077; Mon, 26 May 2008 16:07:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from localhost ([192.168.3.149]) by localhost (scanner1.m-online.net [192.168.1.157]) (amavisd-new, port 10024) with ESMTP id NOMH0RPZwYGz; Mon, 26 May 2008 16:07:36 +0200 (CEST) Received: from mail.reifenberger.com (ppp-88-217-90-73.dynamic.mnet-online.de [88.217.90.73]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 26 May 2008 16:07:36 +0200 (CEST) Received: by mail.reifenberger.com (Postfix, from userid 1001) id B01E41AD22; Mon, 26 May 2008 16:07:35 +0200 (CEST) Date: Mon, 26 May 2008 16:07:35 +0200 From: Michael Reifenberger To: Robert Watson Message-ID: <20080526140735.GA35960@gw.reifenberger.com> References: <200805261157.m4QBvnpF025029@repoman.freebsd.org> <20080526144831.K26343@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080526144831.K26343@fledge.watson.org> User-Agent: Mutt/1.4.2.3i Priority: normal Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org 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: Mon, 26 May 2008 14:24:59 -0000 On Mon, May 26, 2008 at 02:49:16PM +0100, Robert Watson wrote: > On Mon, 26 May 2008, Michael Reifenberger wrote: > > > Extend jexec to accept hostname or ip-number besides jail-id. > > It might be worth adding a caution in the man page notes somewhere that > neither hostname nor IP address are guaranteed to uniquely identify a jail > -- > in which case, which will jexec choose? I'll add some cautions to the man page. The jail is found by an loop through the sysctl security.jail.list and comparing argv against ip-number and hostname. The first matching jail is used then. Makes sense only for those who keep their jails uniquely identifyable by hostname or ip-number, of corse. -- Bye/2 --- Michael Reifenberger Michael@Reifenberger.com http://www.Reifenberger.com