From owner-cvs-src@FreeBSD.ORG Wed May 28 19:38:42 2008 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E409E106581A; Wed, 28 May 2008 19:38:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 452DA8FC0A; Wed, 28 May 2008 19:38:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (server.baldwin.cx [208.65.91.234]) by elvis.mu.org (Postfix) with ESMTP id 1924E1A4D7C; Wed, 28 May 2008 12:38:41 -0700 (PDT) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m4SJcAd9009372; Wed, 28 May 2008 15:38:34 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Michael Reifenberger Date: Wed, 28 May 2008 13:09:49 -0400 User-Agent: KMail/1.9.7 References: <200805261157.m4QBvnpF025029@repoman.freebsd.org> <20080526144831.K26343@fledge.watson.org> <20080526140735.GA35960@gw.reifenberger.com> In-Reply-To: <20080526140735.GA35960@gw.reifenberger.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805281309.49683.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 28 May 2008 15:38:34 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/7278/Wed May 28 11:00:15 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, Robert Watson , cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 19:38:43 -0000 On Monday 26 May 2008 10:07:35 am Michael Reifenberger wrote: > 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. Maybe make it only work if it only matches a single jail? That would work for the common case while avoiding ambiguities in the complex cases. -- John Baldwin