Fix bug 10196 - RW Deny for a specific user is not overriding RW Allow for a group.
authorJeremy Allison <jra@samba.org>
Mon, 21 Oct 2013 23:59:11 +0000 (16:59 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Nov 2013 08:44:12 +0000 (09:44 +0100)
commit2c2d292f8b3cd3457815af6db54542ba227eb746
tree46fc48a6f84d93038dc88c40f254d4f9e2cf772a
parentc87f8edd8918546630cbc1b7e02f99f17b782873
Fix bug 10196 - RW Deny for a specific user is not overriding RW Allow for a group.

When the ID returned is ID_TYPE_BOTH we must *always* add it as both
a user and a group, not just in the owning case. Otherwise DENY
entries are not correctly processed.

Confirmed by the reporter as fixing the problem.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10196

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit 14813e74431816cd894fb242ff5633c2cd14ddca)
source3/smbd/posix_acls.c