From owner-p4-projects@FreeBSD.ORG Sat Apr 11 13:00:27 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5C49A106566B; Sat, 11 Apr 2009 13:00:27 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AAF81065673 for ; Sat, 11 Apr 2009 13:00:27 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E34E68FC0A for ; Sat, 11 Apr 2009 13:00:26 +0000 (UTC) (envelope-from trasz@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n3BD0QPI035369 for ; Sat, 11 Apr 2009 13:00:26 GMT (envelope-from trasz@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n3BD0Qj0035367 for perforce@freebsd.org; Sat, 11 Apr 2009 13:00:26 GMT (envelope-from trasz@freebsd.org) Date: Sat, 11 Apr 2009 13:00:26 GMT Message-Id: <200904111300.n3BD0Qj0035367@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to trasz@freebsd.org using -f From: Edward Tomasz Napierala To: Perforce Change Reviews Cc: Subject: PERFORCE change 160487 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 13:00:29 -0000 http://perforce.freebsd.org/chv.cgi?CH=160487 Change 160487 by trasz@trasz_victim7 on 2009/04/11 12:59:39 ufs_aclcheck() needs to check if the new POSIX1e. ACL will fit into 'struct oldacl', which is being used for POSIX.1e on-disk storage. Affected files ... .. //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_acl.c#14 edit Differences ... ==== //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_acl.c#14 (text+ko) ==== @@ -626,6 +626,10 @@ default: return (EINVAL); } + + if (ap->a_aclp->acl_cnt > OLDACL_MAX_ENTRIES) + return (EINVAL); + return (acl_posix1e_check(ap->a_aclp)); }