cvs commit: src/usr.sbin/jexec jexec.8 jexec.c
mike at reifenberger.com
Mon May 26 14:24:59 UTC 2008
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.
Michael at Reifenberger.com
More information about the cvs-src