Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jul 2008 17:49:01 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 145639 for review
Message-ID:  <200807221749.m6MHn1e2007770@repoman.freebsd.org>

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

Change 145639 by trasz@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)



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