From owner-p4-projects@FreeBSD.ORG Thu Feb 9 19:07:19 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E695F16A423; Thu, 9 Feb 2006 19:07:18 +0000 (GMT) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A2916A422 for ; Thu, 9 Feb 2006 19:07:18 +0000 (GMT) (envelope-from deker@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E317043D5C for ; Thu, 9 Feb 2006 19:07:17 +0000 (GMT) (envelope-from deker@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 k19J7HHu027936 for ; Thu, 9 Feb 2006 19:07:17 GMT (envelope-from deker@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k19J7HU3027933 for perforce@freebsd.org; Thu, 9 Feb 2006 19:07:17 GMT (envelope-from deker@FreeBSD.org) Date: Thu, 9 Feb 2006 19:07:17 GMT Message-Id: <200602091907.k19J7HU3027933@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to deker@FreeBSD.org using -f From: Rob Deker To: Perforce Change Reviews Cc: Subject: PERFORCE change 91446 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 19:07:20 -0000 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 #include @@ -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 {