Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2008 22:51:06 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Michael Reifenberger <mr@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:  <20080528205106.GB2865@garage.freebsd.pl>
In-Reply-To: <200805261157.m4QBvnpF025029@repoman.freebsd.org>
References:  <200805261157.m4QBvnpF025029@repoman.freebsd.org>

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

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

On Mon, May 26, 2008 at 11:57:49AM +0000, Michael Reifenberger wrote:
> mr          2008-05-26 11:57:49 UTC
>=20
>   FreeBSD src repository
>=20
>   Modified files:
>     usr.sbin/jexec       jexec.8 jexec.c=20
>   Log:
>   Extend jexec to accept hostname or ip-number besides jail-id.

As many already suggested using IP numbers and hostnames can be tricky
(and risky). What do you think about using jail name from /etc/rc.conf?
When a name is given, jexec could read /var/run/jail_<name>.id and use
jail ID from there?

I know it will only work with jails created by rc.d/jail, but I think
it's good enough.

PS. I'm not against this functionality, but we should be much more
    careful, especially with hostnames when
    security.jail.set_hostname_allowed=3D1.

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

--eAbsdosE1cNLO4uF
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFIPcW5ForvXbEpPzQRAq+dAJ4pmNepibb1Cgp4j7BcB09IZeFinQCg5eDk
YnvvJCPX5lLydU/gnSVx4RI=
=bleA
-----END PGP SIGNATURE-----

--eAbsdosE1cNLO4uF--



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