Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2008 13:34:52 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 146697 for review
Message-ID:  <200808051334.m75DYqHe097772@repoman.freebsd.org>

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

Change 146697 by trasz@trasz_traszkan on 2008/08/05 13:34:46

	Fix a case where superuser would be prohibited from creating
	subdirectory in a directory he doesn't have write access to.

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/sys/kern/vfs_subr.c#9 edit

Differences ...

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

@@ -3530,7 +3530,8 @@
 	    !priv_check_cred(cred, PRIV_VFS_READ, 0))
 		priv_granted |= VREAD;
 
-	if ((acc_mode & VWRITE) && ((dac_granted & VWRITE) == 0) &&
+	if ((((acc_mode & VWRITE) && ((dac_granted & VWRITE) == 0)) ||
+	    ((acc_mode & VAPPEND) && ((dac_granted & VAPPEND) == 0))) &&
 	    !priv_check_cred(cred, PRIV_VFS_WRITE, 0))
 		priv_granted |= (VWRITE | VAPPEND);
 



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