From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 20 14:50:57 2003 Return-Path: <owner-freebsd-hackers@FreeBSD.ORG> Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F86337B401 for <hackers@freebsd.org>; Fri, 20 Jun 2003 14:50:57 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E86E43FBD for <hackers@freebsd.org>; Fri, 20 Jun 2003 14:50:42 -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 h5KLoTKJ025493; Fri, 20 Jun 2003 17:50:29 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h5KLo8Xl025490; Fri, 20 Jun 2003 17:50:19 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 20 Jun 2003 17:50:08 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> X-Sender: robert@fledge.watson.org To: Dmitry Sivachenko <mitya@cavia.pp.ru> In-Reply-To: <20030618162547.GA91861@fling-wing.demos.su> Message-ID: <Pine.NEB.3.96L.1030620174901.25358C-100000@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org cc: Gary Jennejohn <garyj@jennejohn.org> Subject: Re: struct ipc_perm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD <freebsd-hackers.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers> List-Post: <mailto:freebsd-hackers@freebsd.org> List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 20 Jun 2003 21:50:57 -0000 On Wed, 18 Jun 2003, Dmitry Sivachenko wrote: > > > Is there any reason why struct ipc_perm is not protected by #ifdef _KERNEL > > > in ipc.h? Is it supposed to be used from userland? > > > > It's needed by ipcs. > > Ah, I see. It is visible via struct msqid_ds. > > I developed a patch which requires addition of custom field to ipc_perm. > I am trying to imagine which problems can it cause to userland programs. We have local changes in the TrustedBSD development trees to extend all the structures in the kernel without modifying the ABI. We needed this to put labels in the various System V IPC object structures. We're not ready to merge them yet, but it will probably happen in the next month or so. If you'd like early access to the patch, we can drop you a copy. We'll merge it into the MAC tree in about a week. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories