Home
last modified time | relevance | path

Searched refs:gIDArray (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/startup/init/services/init/
H A Dinit_service_manager.c158 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 …]
H A Dinit_common_service.c170 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()
/ohos5.0/base/startup/init/services/init/include/
H A Dinit_service.h116 gid_t *gIDArray; member
/ohos5.0/base/startup/init/test/unittest/init/
H A Dservice_unittest.cpp294 service->servPerm.gIDArray = (gid_t *)malloc(sizeof(gid_t));
295 ASSERT_NE(nullptr, service->servPerm.gIDArray);
/ohos5.0/base/startup/init/services/init/standard/
H A Dinit_control_fd_service.c149 printf("\t\tservice perms groupId %u \n", service->servPerm.gIDArray[i]); in DumpOneService()