Windows does canonicalization of inheritance bits. Do the same.
commit735ec75ded550ee2a732cde26dc47f0c866d92e4
authorJeremy Allison <jra@samba.org>
Wed, 29 Aug 2012 20:40:29 +0000 (29 13:40 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Sep 2012 09:19:50 +0000 (13 11:19 +0200)
tree8c2b11c7078c4960dd0cc7238ea835881834093d
parent21fe3f0fd6541c9afbb4a292e42d429bad182b7f
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)
(cherry picked from commit c36e78f98f45b51a2d1fba6bedb5e4d39c0f4bbe)
source3/smbd/nttrans.c