http://bugs.winehq.org/show_bug.cgi?id=33279
--- Comment #1 from Austin English austinenglish@gmail.com 2013-03-26 17:36:47 CDT --- http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/ntdll.h?rev=1.141.2.9... NTSTATUS NTAPI RtlConvertToAutoInheritSecurityObject (PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR *, GUID *, BOOLEAN, PGENERIC_MAPPING);
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/security.cc?rev=1.263...
/* ... and create a new security descriptor in which all inherited ACEs are marked with the INHERITED_ACE flag. For a description of the undocumented RtlConvertToAutoInheritSecurityObject function from ntdll.dll see the MSDN man page for the advapi32 function ConvertToAutoInheritPrivateObjectSecurity. Fortunately the latter is just a shim. */ status = RtlConvertToAutoInheritSecurityObject (psd, sd, &nsd, NULL, pc.isdir (), &file_mapping); if (!NT_SUCCESS (status)) { debug_printf ("RtlConvertToAutoInheritSecurityObject (%S), status %p", &dirname, status); return 0; } /* Eventually copy the new security descriptor into sd and delete the original one created by RtlConvertToAutoInheritSecurityObject from the heap. */ len = RtlLengthSecurityDescriptor (nsd); memcpy ((PSECURITY_DESCRIPTOR) sd, nsd, len); RtlDeleteSecurityObject (&nsd);
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376403%28v=vs.85%2...