RtlFindAceByType
NTSTATUS __stdcall RtlFindAceByType(ACL *pAcl, UINT64 AceType, UINT64 *pIndex){
ACL *v4;
unsigned int v5;
if( !pAcl )
return 0;
v4 = pAcl + 1;
v5 = 0;
if( !pAcl->AceCount )
return 0;
while( !pIndex )
{
if( v4->AclRevision == (_DWORD)AceType )
return(int)v4;
LABEL_9:
++v5;
v4 = (ACL *)((char *)v4 + v4->AclSize);
if( v5 >= pAcl->AceCount )
return 0;
}
if( v5 < *(_DWORD *)pIndex || v4->AclRevision != (_DWORD)AceType )
goto LABEL_9;
*(_DWORD *)pIndex = v5;
return(int)v4;
}Referenced by:
AdtpBuildContextFromSecurityDescriptor
RtlIsUntrustedObject
RtlpCopyAces
RtlpGenerateInheritAcl
RtlpNewSecurityObject
RtlpSetSecurityObject
RtlpValidFilterAclSubjectContext
SeComputeAutoInheritByObjectTypeEx
SeQueryMandatoryLabel
SepGetScopedPolicySid
SepMandatorySubProcessToken
SepSDContainsAttributeACE
SepVerifyDesktopAppxPackageName