From owner-p4-projects Sat Sep 21 21: 0:32 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8956C37B406; Sat, 21 Sep 2002 21:00:30 -0700 (PDT) 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 1109B37B404 for ; Sat, 21 Sep 2002 21:00:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA79143E77 for ; Sat, 21 Sep 2002 21:00:28 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8M40SCo088197 for ; Sat, 21 Sep 2002 21:00:28 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8M40SBV088194 for perforce@freebsd.org; Sat, 21 Sep 2002 21:00:28 -0700 (PDT) Date: Sat, 21 Sep 2002 21:00:28 -0700 (PDT) Message-Id: <200209220400.g8M40SBV088194@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 17905 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17905 Change 17905 by rwatson@rwatson_tislabs on 2002/09/21 21:00:09 Reverse polarity of two KASSERT's. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#109 edit .. //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#90 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/mac_biba/mac_biba.c#109 (text+ko) ==== @@ -931,7 +931,7 @@ * allow mbufs to have ranges, do a KASSERT to make sure that * doesn't happen. */ - KASSERT((source->mb_flags & MAC_BIBA_FLAG_RANGE) != 0, + KASSERT((source->mb_flags & MAC_BIBA_FLAG_RANGE) == 0, ("mac_biba_create_mbuf_from_mbuf: source mbuf has range")); mac_biba_copy(source, dest); } ==== //depot/projects/trustedbsd/mac/sys/security/mac_mls/mac_mls.c#90 (text+ko) ==== @@ -885,7 +885,7 @@ * allow mbufs to have ranges, do a KASSERT to make sure that * doesn't happen. */ - KASSERT((source->mm_flags & MAC_MLS_FLAG_RANGE) != 0, + KASSERT((source->mm_flags & MAC_MLS_FLAG_RANGE) == 0, ("mac_mls_create_mbuf_from_mbuf: source mbuf has range")); mac_mls_copy(source, dest); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message