Date: Sat, 28 Sep 2002 12:30:23 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 18289 for review Message-ID: <200209281930.g8SJUNt1097270@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18289 Change 18289 by rwatson@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@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?200209281930.g8SJUNt1097270>