PERFORCE change 17905 for review
Robert Watson
rwatson at freebsd.org
Sun Sep 22 04:00:28 GMT 2002
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17905
Change 17905 by rwatson at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list