ACL not getting inherited
<pre><code>var ac = directoryInfo.GetAccessControl();
var wid = WindowsIdentity.GetCurrent();
IdentityReference securityIdentifier = (wid == null) ? new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null) : wid.User;
bool result = false;
ac.ModifyAccessRule(AccessControlModification.RemoveAll, new FileSystemAccessRule(
                    securityIdentifier,
                    FileSystemRights.FullControl,
                    InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit,
                    PropagationFlags.None,
                    AccessControlType.Deny), out result);
//check result
result = false;
ac.ModifyAccessRule(AccessControlModification.Set, new FileSystemAccessRule(
                    securityIdentifier,
                    FileSystemRights.FullControl,
                    InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit,
                    PropagationFlags.None,
                    AccessControlType.Allow), out result);
//check result
directoryInfo.SetAccessControl(ac);
</code></pre>

<p>I have code above to set directory permission to full control and at the same time remove any "deny" permission set. This code works for the current directory but it's not propagated to child directories and files, anything wrong?</p>

<p>Note that I'm checking the "result" after each ModifyAccessRule call and I can see that they're set to true both times.</p>
