Fix bug 10196 - RW Deny for a specific user is not overriding RW Allow for a group.
commit4c108d4a8a245f680c8548e8e9227cf446a04237
authorJeremy Allison <jra@samba.org>
Mon, 21 Oct 2013 23:59:11 +0000 (21 16:59 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Nov 2013 08:45:19 +0000 (14 09:45 +0100)
treeabc95776e3513107cbdd1c9cd86a4365f92a60e5
parent2cfa1ef6a9e2728c9cdd185d6d08a452e0485200
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