From owner-freebsd-arch@FreeBSD.ORG Wed Jun 25 07:45:31 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5485137B405 for ; Wed, 25 Jun 2003 07:45:31 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57E6A43FB1 for ; Wed, 25 Jun 2003 07:45:27 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 739363ABB53; Wed, 25 Jun 2003 16:48:49 +0200 (CEST) Date: Wed, 25 Jun 2003 16:48:49 +0200 From: Pawel Jakub Dawidek To: Dmitry Sivachenko Message-ID: <20030625144849.GJ7587@garage.freebsd.pl> References: <20030624164602.GW7587@garage.freebsd.pl> <20030625135106.GA19868@fling-wing.demos.su> <20030625140518.GA23435@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="OPsOAWNf+lTlQ18+" Content-Disposition: inline In-Reply-To: <20030625140518.GA23435@fling-wing.demos.su> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-arch@freebsd.org Subject: Re: Jailed sysvipc implementation. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 14:45:31 -0000 --OPsOAWNf+lTlQ18+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 25, 2003 at 06:05:18PM +0400, Dmitry Sivachenko wrote: +> > > Some time ago I've implemented private memory zones for IPC mechism. +> > > Every jail and main host got its own memory for IPC operations. +> > > It was implemented for FreeBSD 4.x. Avaliable at: +> > >=20 +> > > http://garage.freebsd.pl/privipc.tbz +> > > http://garage.freebsd.pl/privipc.README +> >=20 +> > I think it would be better to add checks to disallow the use of IPC=20 +> > primitives created in one jail from another. +> > Thus we will avoid allocating separate segments of kernel memory for +> > each jail. +> >=20 +> > It could be trivially achieved by adding another field to struct ipc_p= erm, +> > but Robert Watson said he knows another way of doing this without +> > breaking ABI (if I understood him right). +> >=20 +>=20 +> Please look at his patch: +>=20 +> http://www.watson.org/~robert/freebsd/mac_sysvipc.diff +>=20 +> It does slightly different things, but we could borrow from it. But you got still *one* memory zones for every jail and main host. And I want to separate them. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --OPsOAWNf+lTlQ18+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPvm2UT/PhmMH/Mf1AQEVNgP/X3aFLNbD24xBPxS1ln2c0jx5Y2+/JvWc f3wuPN+nsBIL1BrvVdiTcT3WciOT9shRwfniLxe1c+biMbL7LIq+uAw1QyCPG93y YQjKrTa7MkDahnn4NLRUyKxw7GgpXJ2dbEE+jQf93jlUFTkjzweVJ6d9YhnZMEa+ qpDnLDfxYcU= =51Jk -----END PGP SIGNATURE----- --OPsOAWNf+lTlQ18+--