PERFORCE change 146198 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jul 29 10:34:38 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=146198

Change 146198 by trasz at trasz_traszkan on 2008/07/29 10:33:51

	Fix granting VSTAT to superuser.

Affected files ...

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

Differences ...

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

@@ -228,7 +228,7 @@
 	if ((acc_mode & VADMIN) && !priv_check_cred(cred, PRIV_VFS_ADMIN, 0))
 		priv_granted |= VADMIN;
 
-	if (priv_granted != 0)
+	if ((acc_mode & VSTAT) && !priv_check_cred(cred, PRIV_VFS_READ, 0))
 		priv_granted |= VSTAT;
 
 	if ((acc_mode & priv_granted) == acc_mode) {


More information about the p4-projects mailing list