Home
last modified time | relevance | path

Searched refs:gidCount (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_manager.c200 section->gidCount = 0; in InitSandboxSection()
260 APPSPAPWN_DUMP(" gidCount: %{public}u", section->gidCount); in DumpSandboxSection()
261 for (uint32_t index = 0; index < section->gidCount; index++) { in DumpSandboxSection()
553 if (permissionNode->section.gidCount == 0) { in AppendPermissionGid()
560 size_t copyLen = permissionNode->section.gidCount; in AppendPermissionGid()
561 if ((permissionNode->section.gidCount + dacInfo->gidCount) > APP_MAX_GIDS) { in AppendPermissionGid()
563 GetProcessName(property), dacInfo->gidCount, permissionNode->section.gidCount); in AppendPermissionGid()
564 copyLen = APP_MAX_GIDS - dacInfo->gidCount; in AppendPermissionGid()
566 int ret = memcpy_s(&dacInfo->gidTable[dacInfo->gidCount], sizeof(gid_t) * copyLen, in AppendPermissionGid()
574 dacInfo->gidCount += copyLen; in AppendPermissionGid()
H A Dappspawn_sandbox.h137 uint32_t gidCount : 16; member
H A Dsandbox_load.c317 section->gidCount = 0; in ParseGidTableConfig()
334 section->gidTable[section->gidCount++] = gid; in ParseGidTableConfig()
H A Dsandbox_utils.cpp865 if (dacInfo->gidCount < APP_MAX_GIDS) { in DoAddGid()
868 dacInfo->gidTable[dacInfo->gidCount++] = gids[i].get<uint32_t>(); in DoAddGid()
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-boot-appspawn.md21 | gidTable | 即将启动的应用进程组信息,长度由gidCount指定,最大支持64个进程组,必须为正值。 |
22 | gidCount | 即将启动的应用进程组个数。 |
/ohos5.0/base/startup/init/services/init/
H A Dinit_service_manager.c289 int gidCount; in GetServiceGids() local
294 gidCount = 1; in GetServiceGids()
296 gidCount = cJSON_GetArraySize(arrItem); in GetServiceGids()
298 INIT_ERROR_CHECK((gidCount != 0) && (gidCount <= NGROUPS_MAX + 1), return SERVICE_FAILURE, in GetServiceGids()
299 "Invalid gid count %d", gidCount); in GetServiceGids()
303 curServ->servPerm.gIDArray = (gid_t *)malloc(sizeof(gid_t) * (gidCount + 1)); in GetServiceGids()
305 curServ->servPerm.gIDCnt = gidCount; in GetServiceGids()
316 for (int i = 0; i < gidCount; ++i) { in GetServiceGids()
/ohos5.0/base/startup/appspawn/interfaces/innerkits/client/
H A Dappspawn_msg.c324 static void GetSpecialGid(const char *bundleName, gid_t gidTable[], uint32_t *gidCount) in GetSpecialGid() argument
333 if (*gidCount < APP_MAX_GIDS) { in GetSpecialGid()
334 gidTable[(*gidCount)++] = GID_USER_DATA_RW; in GetSpecialGid()
335 gidTable[(*gidCount)++] = GID_FILE_ACCESS; in GetSpecialGid()
371 GetSpecialGid(reqNode->msg->processName, tmpDacInfo.gidTable, &tmpDacInfo.gidCount); in AppSpawnReqMsgSetAppDacInfo()
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_spawn_msg_wrapper.cpp100 msg_->gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in AssembleMsg()
112 for (uint32_t i = startMsg.gids.size(); i < msg_->gidCount; ++i) { in AssembleMsg()
H A Dapp_spawn_client.cpp174 appDacInfo.gidCount = startMsg.gids.size() + startMsg.dataGroupInfoList.size(); in SetDacInfo()
178 for (uint32_t i = startMsg.gids.size(); i < appDacInfo.gidCount; i++) { in SetDacInfo()
/ohos5.0/base/startup/appspawn/test/moduletest/
H A Dappspawn_client_test.cpp48 dacInfo.gidCount = 2; // 2 count in CreateMsg()
H A Dappspawn_test_cmder.cpp189 info.gidCount = GetUint32ArrayFromJson(config, "gid-table", info.gidTable, APP_MAX_GIDS); in AddDacInfoFromJson()
252 dacInfo.gidCount = 1; in AddExtTlv()
/ohos5.0/base/startup/appspawn/interfaces/innerkits/include/
H A Dappspawn.h63 uint32_t gidCount; // the size of gidTable member
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_client_test/
H A Dapp_spawn_client_test.cpp243 …APPSPAWN_CHECK(info->gidCount == 2, break, "Invalid gidCount %{public}d", info->gidCount); // 2 d…
751 dacInfo.gidCount = 2; // 2 count
774 dacInfo.gidCount = 2; // 2 count
811 dacInfo.gidCount = 2; // 2 count
H A Dapp_spawn_interface_test.cpp237 dacInfo.gidCount = 2; // 2 count
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-boot-appspawn.md21 …e application process group to be started. Its length is specified by **gidCount**. A maximum of 6…
22 | gidCount | Number of application process groups to be started.|
/ohos5.0/base/startup/appspawn/modules/common/
H A Dappspawn_common.c241 int ret = setgroups(dacInfo->gidCount, (const gid_t *)(&dacInfo->gidTable[0])); in SetUidGid()
243 "setgroups failed: %{public}d, gids.size=%{public}u", errno, dacInfo->gidCount); in SetUidGid()
/ohos5.0/base/startup/appspawn/standard/
H A Dappspawn_msgmgr.c386 dacInfo->uid, dacInfo->gid, dacInfo->gidCount); in DumpAppSpawnMsg()
387 for (uint32_t i = 0; i < dacInfo->gidCount; i++) { in DumpAppSpawnMsg()
/ohos5.0/base/startup/appspawn/test/unittest/
H A Dapp_spawn_test_helper.cpp460 dacInfo.gidCount = 2; // 2 count in AddDacInfo()
708 dacInfo.gidCount = 2; // 2 count in AddBaseTlv()
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandbox_new_test.cpp1041 ASSERT_EQ(permissionNode->section.gidCount, 2);