PERFORCE change 91446 for review
Rob Deker
deker at FreeBSD.org
Thu Feb 9 19:07:17 GMT 2006
http://perforce.freebsd.org/chv.cgi?CH=91446
Change 91446 by deker at deker_build1.columbia.sparta.com on 2006/02/09 19:07:11
Update license
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/ipc_mqueue.c#3 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/darwin/xnu/osfmk/ipc/ipc_mqueue.c#3 (text+ko) ====
@@ -56,6 +56,13 @@
*
* Functions to manipulate IPC message queues.
*/
+/*
+ * NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
+ * support for mandatory and extensible security protections. This notice
+ * is included in support of clause 2.2 (b) of the Apple Public License,
+ * Version 2.0.
+ */
+
#include <mach/port.h>
#include <mach/message.h>
@@ -246,6 +253,9 @@
if (th->ith_msize <
kmsg->ikm_header.msgh_size +
REQUESTED_TRAILER_SIZE(th->ith_option)) {
+#if 0
+ printf("ipc_mqueue_add: ith_msize too small (%d vs. %d)\n", th->ith_msize, kmsg->ikm_header.msgh_size + REQUESTED_TRAILER_SIZE(th->ith_option));
+#endif
th->ith_state = MACH_RCV_TOO_LARGE;
th->ith_msize = kmsg->ikm_header.msgh_size;
if (th->ith_option & MACH_RCV_LARGE) {
@@ -485,6 +495,9 @@
if (receiver->ith_msize <
(kmsg->ikm_header.msgh_size) +
REQUESTED_TRAILER_SIZE(receiver->ith_option)) {
+#if 0
+ printf("ipc_mqueue_post: ith_msize too small (%d vs. %d)\n", receiver->ith_msize, kmsg->ikm_header.msgh_size + REQUESTED_TRAILER_SIZE(receiver->ith_option));
+#endif
receiver->ith_msize = kmsg->ikm_header.msgh_size;
receiver->ith_state = MACH_RCV_TOO_LARGE;
} else {
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list