Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2008 17:16:23 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 147162 for review
Message-ID:  <200808111716.m7BHGNDw049396@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147162

Change 147162 by trasz@trasz_traszkan on 2008/08/11 17:16:20

	Make sure we don't allow for setting ACL with
	acl_cnt > ACL_MAX_ENTRIES.  Oops.

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/sys/kern/subr_acl_nfs4.c#19 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/sys/kern/subr_acl_nfs4.c#19 (text+ko) ====

@@ -970,7 +970,7 @@
 	 * valid.  There can be none of them too.  Really.
 	 */
 
-	if (aclp->acl_cnt < 1)
+	if (acl->acl_cnt > ACL_MAX_ENTRIES || acl->acl_cnt < 0)
 		return (EINVAL);
 
 	for (i = 0; i < aclp->acl_cnt; i++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808111716.m7BHGNDw049396>