svn commit: r235890 - stable/9/sys/kern

Edward Tomasz Napierala trasz at FreeBSD.org
Thu May 24 10:02:43 UTC 2012


Author: trasz
Date: Thu May 24 10:02:42 2012
New Revision: 235890
URL: http://svn.freebsd.org/changeset/base/235890

Log:
  MFC r234385:
  
  Fix bug where NFSv4 ACL enforcement code wouldn't unconditionally
  allow the owner to read and write ACL and file attributes when there
  was no entry with subject matching the owner.  In other words,
  'getfacl meh' shouldn't fail for the owner if the ACL looks like this:
  
  # file: meh
  # owner: trasz
  # group: wheel
           user:root:------a-------:------:allow

Modified:
  stable/9/sys/kern/subr_acl_nfs4.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/subr_acl_nfs4.c
==============================================================================
--- stable/9/sys/kern/subr_acl_nfs4.c	Thu May 24 09:59:58 2012	(r235889)
+++ stable/9/sys/kern/subr_acl_nfs4.c	Thu May 24 10:02:42 2012	(r235890)
@@ -160,6 +160,9 @@ _acl_denies(const struct acl *aclp, int 
 			return (0);
 	}
 
+	if (access_mask == 0)
+		return (0);
+
 	return (1);
 }
 


More information about the svn-src-stable-9 mailing list