cvs commit: src/sys/kern sysv_msg.c sysv_sem.c sysv_shm.c
src/sys/sys msg.h
Robert Watson
rwatson at FreeBSD.org
Thu May 5 11:53:13 PDT 2005
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 <rishi_dandekar at sbcglobal dot net>
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
More information about the cvs-src
mailing list