Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2008 13:09:49 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        Michael Reifenberger <mike@reifenberger.com>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, Robert Watson <rwatson@freebsd.org>, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c
Message-ID:  <200805281309.49683.jhb@freebsd.org>
In-Reply-To: <20080526140735.GA35960@gw.reifenberger.com>
References:  <200805261157.m4QBvnpF025029@repoman.freebsd.org> <20080526144831.K26343@fledge.watson.org> <20080526140735.GA35960@gw.reifenberger.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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