CmFcInitSystem2

INT64 __stdcall CmFcInitSystem2(){
  int started; 
  struct _SECURITY_SUBJECT_CONTEXT SubjectContext; 
  memset(&SubjectContext, 0, sizeof(SubjectContext));
  started = SeConvertStringSecurityDescriptorToSecurityDescriptor((PVOID *)L"O:SYG:SYD:(A;;GA;;;SY)(A;;GA;;;BA)");
  if( started >= 0 )
  {
    SeCaptureSubjectContext(&SubjectContext);
    started = SeAssignSecurity(
                0i64,
                0i64,
                &CmFcFeatureConfigSecurityDescriptor,
                0,
                &SubjectContext,
                &CmFcFeatureConfigMapping,
                PagedPool);
    SeReleaseSubjectContext(&SubjectContext);
    if( started >= 0 )
    {
      started = CmFcManagerStartRuntimePhase();
      if( started >= 0 )
        return 0;
    }
  }
  return(unsigned int)started;
}

Referenced by:

CmInitSystem1