Windows does canonicalization of inheritance bits. Do the same.
commitc36e78f98f45b51a2d1fba6bedb5e4d39c0f4bbe
authorJeremy Allison <jra@samba.org>
Wed, 29 Aug 2012 20:40:29 +0000 (29 13:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 31 Aug 2012 06:46:18 +0000 (31 08:46 +0200)
treec33933448289889838fe044baecf2721c620c093
parent7e03ebf094a98c572816cb81ef3cf4c02aaafcfd
Windows does canonicalization of inheritance bits. Do the same.

We need to filter out the
SEC_DESC_DACL_AUTO_INHERITED|SEC_DESC_DACL_AUTO_INHERIT_REQ
bits. If both are set we store SEC_DESC_DACL_AUTO_INHERITED
as this alters whether SEC_ACE_FLAG_INHERITED_ACE is set
when an ACE is inherited. Otherwise we zero these bits out.
See:

http://social.msdn.microsoft.com/Forums/eu/os_fileservices/thread/11f77b68-731e-407d-b1b3-064750716531

for details.
(cherry picked from commit d02f39f97624260bd226977b30c80974d0ce0fe0)
source3/smbd/nttrans.c