Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-30 Thread Robert Watson
On Fri, 30 May 2008, Ceri Davies wrote: Thats something that the admin should take care for. How might they do that? Remember that any command that works only when the jail IP is "unambiguous" will become effectively non-deterministic as a result of un-garbage collected jails. So Is it

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-30 Thread Oliver Fromme
Alexander Leidinger wrote: > Robert Watson wrote: > > How might they do that? Remember that any command that works only > > when the jail IP is "unambiguous" will become effectively > > non-deterministic as a result of un-garbage collected jails. So > > Is it feasible to change the ho

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-30 Thread Ceri Davies
On Fri, May 30, 2008 at 04:50:51PM +0200, Alexander Leidinger wrote: > Quoting Robert Watson <[EMAIL PROTECTED]> (from Thu, 29 May 2008 15:56:50 > +0100 (BST)): > >> On Thu, 29 May 2008, Michael Reifenberger wrote: >> >>> On Thu, May 29, 2008 at 03:14:20PM +0100, Robert Watson wrote: ... Th

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-30 Thread Alexander Leidinger
Quoting Robert Watson <[EMAIL PROTECTED]> (from Thu, 29 May 2008 15:56:50 +0100 (BST)): On Thu, 29 May 2008, Michael Reifenberger wrote: On Thu, May 29, 2008 at 03:14:20PM +0100, Robert Watson wrote: ... The other concept that might be of benefit is a "dead" jail vs. a "live" jail -- with

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-30 Thread Robert Watson
On Thu, 29 May 2008, Robert Watson wrote: On Thu, 29 May 2008, Michael Reifenberger wrote: Log: Fix some bugs/complaints: - make addr2jid static - add -h Flag for hostname/ip-number search - s,strncmp,strcmp, in addr2jid - return jid only if found once Requested by: some FWIW, I thin

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Robert Watson
On Thu, 29 May 2008, Michael Reifenberger wrote: Log: Fix some bugs/complaints: - make addr2jid static - add -h Flag for hostname/ip-number search - s,strncmp,strcmp, in addr2jid - return jid only if found once Requested by: some FWIW, I think recent changes have made jexec behave in a

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Robert Watson
On Thu, 29 May 2008, Michael Reifenberger wrote: On Thu, May 29, 2008 at 03:14:20PM +0100, Robert Watson wrote: ... The other concept that might be of benefit is a "dead" jail vs. a "live" jail -- with TCP connections taking a while to run down, there can often be dangling jail references that

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Michael Reifenberger
On Thu, May 29, 2008 at 03:14:20PM +0100, Robert Watson wrote: ... > The other concept that might be of benefit is a "dead" jail vs. a "live" > jail -- with TCP connections taking a while to run down, there can often be > dangling jail references that don't garbage collect for a few minutes. > P

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Edwin Groothuis
On Thu, May 29, 2008 at 04:16:49PM +0200, Oliver Fromme wrote: > Bjoern A. Zeeb wrote: > > On Thu, 29 May 2008, Oliver Fromme wrote: > > > I think that an admin who decides to use jexec with IP > > > numbers or hostnames should be expected to be aware that > > > there can be ambiguities, and th

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Oliver Fromme
Bjoern A. Zeeb wrote: > On Thu, 29 May 2008, Oliver Fromme wrote: > > I think that an admin who decides to use jexec with IP > > numbers or hostnames should be expected to be aware that > > there can be ambiguities, and that he should make sure > > that his IP numbers and/or hostnames are uni

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Robert Watson
On Thu, 29 May 2008, Michael Reifenberger wrote: On Wed, May 28, 2008 at 01:09:49PM -0400, John Baldwin wrote: ... 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. Yes. Thats a good suggestion and

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Michael Reifenberger
On Wed, May 28, 2008 at 01:09:49PM -0400, John Baldwin wrote: ... > > 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. > Yes. Thats a good suggestion and the road I'll go. Thanks! -- Bye/2 ---

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Bjoern A. Zeeb
On Thu, 29 May 2008, Oliver Fromme wrote: Pawel Jakub Dawidek wrote: > On Mon, May 26, 2008 at 11:57:49AM +, Michael Reifenberger wrote: > > mr 2008-05-26 11:57:49 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.sbin/jexec jexec.8 jexec.c > > Log:

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-29 Thread Oliver Fromme
Pawel Jakub Dawidek wrote: > On Mon, May 26, 2008 at 11:57:49AM +, Michael Reifenberger wrote: > > mr 2008-05-26 11:57:49 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.sbin/jexec jexec.8 jexec.c > > Log: > > Extend jexec to accept hos

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-28 Thread Pawel Jakub Dawidek
On Mon, May 26, 2008 at 11:57:49AM +, Michael Reifenberger wrote: > mr 2008-05-26 11:57:49 UTC > > FreeBSD src repository > > Modified files: > usr.sbin/jexec jexec.8 jexec.c > Log: > Extend jexec to accept hostname or ip-number besides jail-id. As many already su

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-28 Thread Pawel Jakub Dawidek
On Wed, May 28, 2008 at 01:09:49PM -0400, John Baldwin wrote: > 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 i

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-28 Thread John Baldwin
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

Re: cvs commit: src/usr.sbin/jexec jexec.8 jexec.c

2008-05-27 Thread Julian Elischer
Alexander Leidinger wrote: Quoting Frank Behrens <[EMAIL PROTECTED]> (from Mon, 26 May 2008 20:48:23 +0200): The rc.conf jail framework also requires unique hostnames for jails, because the jail-ids are write to /var/run. On a related note: JIDs are not known in advance, so doing some rc.d