Another fix needed for bug #9236 - ACL masks incorrectly applied when setting ACLs.
authorJeremy Allison <jra@samba.org>
Thu, 8 Nov 2012 21:45:19 +0000 (13:45 -0800)
committerKarolin Seeger <kseeger@samba.org>
Fri, 14 Dec 2012 09:01:36 +0000 (10:01 +0100)
commit42cfbb83b877714b925187b7745b214fa0a2dbad
tree63ecfb0af3d00138e78f89f27e5676e767eb5817
parentea35034eb147748a6468abe1041dba2a44cca773
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 with acl_xattr mapped onto a POSIX backend (which
isn't tested in make test).

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.
(cherry picked from commit 92292ac55144521824610a5d4b09f8dc1ff19a8a)
source3/smbd/posix_acls.c