Another fix needed for bug #9236 - ACL masks incorrectly applied when setting ACLs.
authorJeremy Allison <jra@samba.org>
Tue, 13 Nov 2012 19:22:15 +0000 (11:22 -0800)
committerMichael Adam <obnox@samba.org>
Thu, 15 Nov 2012 18:52:51 +0000 (19:52 +0100)
commitcf1540b73714fac6b25de5942cbd821e5f4f6ffc
tree967d316f9b19d385ba47efa7326921c0e8ac53c3
parent4ed7803c803e94f5887775f1acb902063f7bcc86
Another fix needed for bug #9236 - ACL masks incorrectly applied when setting ACLs.

Not caught by make test as it's an extreme edge case for strange
incoming ACLs. I only found this as I'm making raw.acls and smb2.acls
pass against 3.6.x and 4.0.0 with acl_xattr mapped onto a POSIX backend.

An incoming inheritable ACE entry containing only one permission,
WRITE_DATA maps into a POSIX owner perm of "-w-", which violates
the principle that the owner of a file/directory can always read.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Nov 15 19:52:52 CET 2012 on sn-devel-104
source3/smbd/posix_acls.c