Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2008 22:45:54 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        cvs-src@freebsd.org, Michael Reifenberger <mike@reifenberger.com>, 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:  <20080528204554.GA2865@garage.freebsd.pl>
In-Reply-To: <200805281309.49683.jhb@freebsd.org>
References:  <200805261157.m4QBvnpF025029@repoman.freebsd.org> <20080526144831.K26343@fledge.watson.org> <20080526140735.GA35960@gw.reifenberger.com> <200805281309.49683.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--J/dobhs11T7y2rNN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
> > >=20
> > > > Extend jexec to accept hostname or ip-number besides jail-id.
> > >=20
> > > It might be worth adding a caution in the man page notes somewhere th=
at=20
> > > neither hostname nor IP address are guaranteed to uniquely identify a=
 jail=20
> > > --=20
> > > in which case, which will jexec choose?
> >=20
> > 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=
=20
> > by hostname or ip-number, of corse.
>=20
> Maybe make it only work if it only matches a single jail?  That would wor=
k for=20
> the common case while avoiding ambiguities in the complex cases.

Yeah. I'd also suggest to not even try to match hostnames if
security.jail.set_hostname_allowed is set to 1.

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--J/dobhs11T7y2rNN
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFIPcSAForvXbEpPzQRAiErAJ45tR2mgzXWcSwhW7Zax6ul5MCbsgCgyiWK
g69RyYL3/o4rakweP6u7JVQ=
=fzm+
-----END PGP SIGNATURE-----

--J/dobhs11T7y2rNN--



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