我通过对这种原生方法进行设置来在注册表项上设置ACL:
[DllImport(@"advapi32.dll", EntryPoint = "RegSetKeySecurity", SetLastError = true)]
internal static extern int RegSetKeySecurity(SafeRegistryHandle handle, uint securityInformation, IntPtr pSecurityDescriptor);
我的SDDL在子对象上设置所需的继承(AR):
D:ARP(A;CI;KA;;;SY)(A;CI;KA;;;BA)
一切正常,并且在父ACL上设置此ACL后创建的新子子项继承ACL。但是,问题在于现有的子键不继承此ACL。如何强制将此ACL传播到现有子子项?