PERFORCE change 145639 for review

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Jul 22 17:49:02 UTC 2008


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

Change 145639 by trasz at trasz_traszkan on 2008/07/22 17:48:59

	File owner should be implicitly granted ACL_READ_ATTRIBUTES
	and ACL_WRITE_ATTRIBUTES.

Affected files ...

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

Differences ...

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

@@ -167,10 +167,12 @@
 		is_directory = 0;
 
 	/*
-	 * File owner is always allowed to read and write the ACL.
+	 * File owner is always allowed to read and write the ACL
+	 * and basic attributes.
 	 */
 	if (file_uid == cred->cr_uid)
-		needed_bits &= ~(ACL_READ_ACL | ACL_WRITE_ACL);
+		needed_bits &= ~(ACL_READ_ACL | ACL_WRITE_ACL |
+		    ACL_READ_ATTRIBUTES | ACL_WRITE_ATTRIBUTES);
 
 	denied = _match_acl(aclp, needed_bits, cred, file_uid, file_gid);
 	if (!denied)


More information about the p4-projects mailing list