Searched refs:gIDArray (Results 1 – 5 of 5) sorted by relevance
158 if (service->servPerm.gIDArray != NULL) { in ReleaseService()159 free(service->servPerm.gIDArray); in ReleaseService()160 service->servPerm.gIDArray = NULL; in ReleaseService()300 if (curServ->servPerm.gIDArray != NULL) { in GetServiceGids()301 free(curServ->servPerm.gIDArray); in GetServiceGids()303 curServ->servPerm.gIDArray = (gid_t *)malloc(sizeof(gid_t) * (gidCount + 1)); in GetServiceGids()304 …INIT_ERROR_CHECK(curServ->servPerm.gIDArray != NULL, return SERVICE_FAILURE, "Failed to malloc err… in GetServiceGids()312 curServ->servPerm.gIDArray[0] = gid; in GetServiceGids()323 curServ->servPerm.gIDArray[gidArrayIndex++] = gid; in GetServiceGids()326 curServ->servPerm.gIDArray[gidArrayIndex++] = curServ->servPerm.uID; in GetServiceGids()[all …]
170 INIT_ERROR_CHECK(setgid(service->servPerm.gIDArray[0]) == 0, return SERVICE_FAILURE, in ServiceSetGid()174 …_CHECK(setgroups(service->servPerm.gIDCnt - 1, (const gid_t *)&service->servPerm.gIDArray[1]) == 0, in ServiceSetGid()
116 gid_t *gIDArray; member
294 service->servPerm.gIDArray = (gid_t *)malloc(sizeof(gid_t));295 ASSERT_NE(nullptr, service->servPerm.gIDArray);
149 printf("\t\tservice perms groupId %u \n", service->servPerm.gIDArray[i]); in DumpOneService()