PERFORCE change 18289 for review

Robert Watson rwatson at
Sat Sep 28 19:30:23 GMT 2002

Change 18289 by rwatson at rwatson_tislabs on 2002/09/28 12:29:42

	It's not an error for the user program to provide a buffer for
	data larger than we support, it's only an error for it to
	provide data larger than we support in kernel.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#279 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#279 (text+ko) ====

@@ -1520,7 +1520,7 @@
 mac_check_structmacelement_consistent(struct mac_element *element)
-	if (element->me_databuflen > MAC_MAX_LABEL_ELEMENT_DATALEN)
+	if (element->me_datalen > MAC_MAX_LABEL_ELEMENT_DATALEN)
 		return (EINVAL);
 	if (element->me_datalen > element->me_databuflen)
To Unsubscribe: send mail to majordomo at
with "unsubscribe trustedbsd-cvs" in the body of the message

More information about the trustedbsd-cvs mailing list