Fix bug 10196 - RW Deny for a specific user is not overriding RW Allow for a group.
commit14813e74431816cd894fb242ff5633c2cd14ddca
authorJeremy Allison <jra@samba.org>
Mon, 21 Oct 2013 23:59:11 +0000 (21 16:59 -0700)
committerDavid Disseldorp <ddiss@samba.org>
Thu, 24 Oct 2013 12:20:04 +0000 (24 14:20 +0200)
treed656c2ceccc7096dbf63f692218b03724e425cf5
parentcdd232cc06a5652ad9f6800d5baf017632099cd8
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>
source3/smbd/posix_acls.c