Date: Thu, 9 Feb 2006 19:07:17 GMT From: Rob Deker <deker@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 91446 for review Message-ID: <200602091907.k19J7HU3027933@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91446 Change 91446 by deker@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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602091907.k19J7HU3027933>