Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2008 16:07:35 +0200
From:      Michael Reifenberger <mike@reifenberger.com>
To:        Robert Watson <rwatson@FreeBSD.org>
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
Message-ID:  <20080526140735.GA35960@gw.reifenberger.com>
In-Reply-To: <20080526144831.K26343@fledge.watson.org>
References:  <200805261157.m4QBvnpF025029@repoman.freebsd.org> <20080526144831.K26343@fledge.watson.org>

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




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