[Bug 33279] Cygwin wants ntdll.dll.RtlConvertToAutoInheritSecurityObject
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Mar 26 17:36:47 CDT 2013
http://bugs.winehq.org/show_bug.cgi?id=33279
--- Comment #1 from Austin English <austinenglish at 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&content-type=text/x-cvsweb-markup&cvsroot=src
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.2.4&content-type=text/x-cvsweb-markup&cvsroot=src
/* ... 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%29.aspx
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list