From owner-freebsd-arch@FreeBSD.ORG Wed Jun 25 10:26:51 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 4971937B401 for ; Wed, 25 Jun 2003 10:26:51 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89FCB43FE9 for ; Wed, 25 Jun 2003 10:26:50 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h5PHQSKJ057237; Wed, 25 Jun 2003 13:26:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h5PHQS1I057232; Wed, 25 Jun 2003 13:26:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 25 Jun 2003 13:26:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Pawel Jakub Dawidek In-Reply-To: <20030624164602.GW7587@garage.freebsd.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 17:26:51 -0000 On Tue, 24 Jun 2003, Pawel Jakub Dawidek 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: > > http://garage.freebsd.pl/privipc.tbz > http://garage.freebsd.pl/privipc.README > > I want to port this to FreeBSD 5.x, but with many improvements. Because > of that there are few things to talk about and I'm curious if anyone > will be interested in answering my questions and at the end commiting > this to -CURRENT. > > Patch will not be a "fast hack" so the best way will be commiting this > in parts. I got already working sysvipv_msg mechanism. > > So if anyone is interested in, please inform me and I'll ask my > questions and I'll send also what I got now. We have some initial patches that wrap the user ipcperm structure in a kernel-specific structure, which we use to add a MAC label. It would be easy to also add a prison pointer. We probably won't get to merging this patch for a couple of weeks, but it's worth keeping in mind. http://www.watson.org/~robert/freebsd/mac_sysvipc.diff This needs style cleanup, bug fixing, testing, etc, but it's the direction we're pushing in for MAC right now. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories