Windows does canonicalization of inheritance bits. Do the same.
authorJeremy Allison <jra@samba.org>
Wed, 29 Aug 2012 20:40:29 +0000 (13:40 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Aug 2012 17:08:50 +0000 (10:08 -0700)
commit3d34406c7bd70576b1705e98b4b3901ac75537c9
tree428824f17ad9e29f45390abd69b5152d25f234c2
parent795920cf4a25ab4ea061d5620b19ba27884921dd
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.
source3/smbd/nttrans.c