From owner-cvs-all@FreeBSD.ORG Thu May 5 18:53:13 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE90016A4CE; Thu, 5 May 2005 18:53:13 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 986C443D39; Thu, 5 May 2005 18:53:13 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j45IrDpk075477; Thu, 5 May 2005 18:53:13 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j45IrDGt075476; Thu, 5 May 2005 18:53:13 GMT (envelope-from rwatson) Message-Id: <200505051853.j45IrDGt075476@repoman.freebsd.org> From: Robert Watson Date: Thu, 5 May 2005 18:53:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/kern sysv_msg.c sysv_sem.c sysv_shm.c src/sys/sys msg.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 05 May 2005 18:53:13 -0000 rwatson 2005-05-05 18:53:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/kern sysv_msg.c sysv_sem.c sysv_shm.c sys/sys msg.h Log: Merge sysv_msg.c:1.54, sysv_sem.c:1.71-1.72, sysv_shm.c:1.98, msg.h:1.18: Second of several commits to allow kernel System V IPC data structures to be modified and extended without breaking the user space ABI: Use _kernel variants on _ds structures for System V sempahores, message queues, and shared memory. When interfacing with userspace, export only the _ds subsets of the _kernel data structures. A lot of search and replace. Define the message structure in the _KERNEL portion of msg.h so that it can be used by other kernel consumers, but not exposed to user space. Submitted by: Dandekar Hrishikesh Obtained from: TrustedBSD Project Sponsored by: DARPA, SPAWAR, McAfee Research Correct two incorrectly merged changes introduced in sysv_sem.c:1.71: return EINVAL rather than setting error, and don't free sops unconditionally. The first change was merged accidentally as part of the larger set of changes to introduce MAC labels and access control, and potentially lead to continued processing of a request even after it was determined to be invalid. The second change was due to changes in the semaphore code since the original work was performed. Pointed out by: truckman NOTE: Change to ipcs.c in user space that catches up with kernel header changes to follow shortly in a second commit. The API has changed, but not the ABI. Requested by: ps Revision Changes Path 1.53.2.4 +126 -134 src/sys/kern/sysv_msg.c 1.70.2.4 +128 -126 src/sys/kern/sysv_sem.c 1.96.2.4 +88 -88 src/sys/kern/sysv_shm.c 1.16.6.3 +9 -0 src/sys/sys/msg.h