Date: Sat, 21 Sep 2002 21:00:28 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 17905 for review Message-ID: <200209220400.g8M40SBV088194@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209220400.g8M40SBV088194>