From owner-cvs-all@FreeBSD.ORG Wed May 28 20:51:12 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BFD71065676; Wed, 28 May 2008 20:51:12 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206046210.chello.pl [87.206.46.210]) by mx1.freebsd.org (Postfix) with ESMTP id 772DB8FC12; Wed, 28 May 2008 20:51:11 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0BED745EA4; Wed, 28 May 2008 22:51:10 +0200 (CEST) Received: from localhost (chello087206046210.chello.pl [87.206.46.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id ECA7F45CDC; Wed, 28 May 2008 22:51:05 +0200 (CEST) Date: Wed, 28 May 2008 22:51:06 +0200 From: Pawel Jakub Dawidek To: Michael Reifenberger Message-ID: <20080528205106.GB2865@garage.freebsd.pl> References: <200805261157.m4QBvnpF025029@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <200805261157.m4QBvnpF025029@repoman.freebsd.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 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 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 20:51:12 -0000 --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_.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--