/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_manager.c | 200 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 D | appspawn_sandbox.h | 137 uint32_t gidCount : 16; member
|
H A D | sandbox_load.c | 317 section->gidCount = 0; in ParseGidTableConfig() 334 section->gidTable[section->gidCount++] = gid; in ParseGidTableConfig()
|
H A D | sandbox_utils.cpp | 865 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 D | subsys-boot-appspawn.md | 21 | gidTable | 即将启动的应用进程组信息,长度由gidCount指定,最大支持64个进程组,必须为正值。 | 22 | gidCount | 即将启动的应用进程组个数。 |
|
/ohos5.0/base/startup/init/services/init/ |
H A D | init_service_manager.c | 289 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 D | appspawn_msg.c | 324 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 D | app_spawn_msg_wrapper.cpp | 100 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 D | app_spawn_client.cpp | 174 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 D | appspawn_client_test.cpp | 48 dacInfo.gidCount = 2; // 2 count in CreateMsg()
|
H A D | appspawn_test_cmder.cpp | 189 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 D | appspawn.h | 63 uint32_t gidCount; // the size of gidTable member
|
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_client_test/ |
H A D | app_spawn_client_test.cpp | 243 …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 D | app_spawn_interface_test.cpp | 237 dacInfo.gidCount = 2; // 2 count
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-boot-appspawn.md | 21 …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 D | appspawn_common.c | 241 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 D | appspawn_msgmgr.c | 386 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 D | app_spawn_test_helper.cpp | 460 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 D | app_spawn_sandbox_new_test.cpp | 1041 ASSERT_EQ(permissionNode->section.gidCount, 2);
|