PERFORCE change 147162 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Mon Aug 11 17:16:25 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147162
Change 147162 by trasz at 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++) {
More information about the p4-projects
mailing list