PERFORCE change 147282 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Aug 13 08:34:49 UTC 2008


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

Change 147282 by trasz at trasz_traszkan on 2008/08/13 08:33:55

	Make ACL_WRITE_OWNER work as advertised.  Pass all the tests again.

Affected files ...

.. //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_vnops.c#13 edit

Differences ...

==== //depot/projects/soc2008/trasz_nfs4acl/sys/ufs/ufs/ufs_vnops.c#13 (text+ko) ====

@@ -774,7 +774,7 @@
 	 * group of which we are not a member, the caller must have
 	 * privilege.
 	 */
-	if ((uid != ip->i_uid || 
+	if (((uid != ip->i_uid && uid != cred->cr_uid) || 
 	    (gid != ip->i_gid && !groupmember(gid, cred))) &&
 	    (error = priv_check_cred(cred, PRIV_VFS_CHOWN, 0)))
 		return (error);


More information about the p4-projects mailing list