From owner-freebsd-current Wed Dec 11 17:17:19 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 832CE37B401 for ; Wed, 11 Dec 2002 17:17:17 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-64-169-104-228.dsl.lsan03.pacbell.net [64.169.104.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id C014A43ED8 for ; Wed, 11 Dec 2002 17:17:13 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 2D87F66E42; Wed, 11 Dec 2002 17:17:13 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 745B413AB; Wed, 11 Dec 2002 17:17:12 -0800 (PST) Date: Wed, 11 Dec 2002 17:17:12 -0800 From: Kris Kennaway To: Steve Kargl Cc: Andrew Thompson , freebsd-current@FreeBSD.ORG Subject: Re: Jailing a 4.7 environment on 5.0? Message-ID: <20021212011712.GA87978@rot13.obsecurity.org> References: <20021212001931.GA76871@troutmask.apl.washington.edu> <20021212005216.GA87536@rot13.obsecurity.org> <02Dec12.135649nzdt.119048@homer.fire.org.nz> <20021212010846.GA77330@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20021212010846.GA77330@troutmask.apl.washington.edu> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 11, 2002 at 05:08:46PM -0800, Steve Kargl wrote: > On Thu, Dec 12, 2002 at 01:56:40PM +1300, Andrew Thompson wrote: > > On Thu, 2002-12-12 at 13:52, Kris Kennaway wrote: > > > On Wed, Dec 11, 2002 at 04:19:31PM -0800, Steve Kargl wrote: > > > > Is is possible to set up a jail that contains 4.7 on > > > > a 5.0 system? > > >=20 > > > Yes. > >=20 > > But doesnt a jail share the same kernel? (I have never set one up so I > > dont know what I am talking about :) > >=20 >=20 > Yes, it does use the same kernel. If you read the jail(8) > man page, it discusses setting up a jail on a 4.x system. > The first section contains >=20 > This example shows how to setup a jail directory tree containing an > entire FreeBSD distribution: >=20 > D=3D/here/is/the/jail > cd /usr/src > mkdir -p $D > make world DESTDIR=3D$D > cd etc > make distribution DESTDIR=3D$D > cd $D/dev > sh MAKEDEV jail > cd $D > ln -sf dev/null kernel >=20 > Clearly, this doesn't work on a 5.0 system if you want to > set up a 4.7 jail. Replace the 'cd %D/dev; sh MAKEDEV jail' with 'mount -t devfs / $D/dev' Kris --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99+OYWry0BWjoQKURAuk8AJ4nPh6SbM5DpTxAToq3o/Zubex8QACgq9W3 y2dMCoN34IfNd7jqxJUFPL0= =sSyb -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message