forked from Mirrors/wine-wine
advapi32: Support service objects in SetSecurityInfo.
parent
a74dc1a119
commit
e4717c299e
|
@ -5680,7 +5680,16 @@ DWORD WINAPI SetSecurityInfo(HANDLE handle, SE_OBJECT_TYPE ObjectType,
|
|||
if (SecurityInfo & SACL_SECURITY_INFORMATION)
|
||||
SetSecurityDescriptorSacl(&sd, TRUE, pSacl, FALSE);
|
||||
|
||||
status = NtSetSecurityObject(handle, SecurityInfo, &sd);
|
||||
switch (ObjectType)
|
||||
{
|
||||
case SE_SERVICE:
|
||||
FIXME("stub: Service objects are not supported at this time.\n");
|
||||
status = STATUS_SUCCESS; /* Implement SetServiceObjectSecurity */
|
||||
break;
|
||||
default:
|
||||
status = NtSetSecurityObject(handle, SecurityInfo, &sd);
|
||||
break;
|
||||
}
|
||||
return RtlNtStatusToDosError(status);
|
||||
}
|
||||
|
||||
|
|
|
@ -2196,6 +2196,9 @@ BOOL WINAPI QueryServiceObjectSecurity(SC_HANDLE hService,
|
|||
|
||||
/******************************************************************************
|
||||
* SetServiceObjectSecurity [ADVAPI32.@]
|
||||
*
|
||||
* NOTES
|
||||
* - SetSecurityInfo should be updated to call this function once it's implemented.
|
||||
*/
|
||||
BOOL WINAPI SetServiceObjectSecurity(SC_HANDLE hService,
|
||||
SECURITY_INFORMATION dwSecurityInformation,
|
||||
|
|
Loading…
Reference in New Issue