/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() 587 if (permissionNode->section.gidCount == 0) { in AppendPermissionGid() 594 size_t copyLen = permissionNode->section.gidCount; in AppendPermissionGid() 595 if ((permissionNode->section.gidCount + dacInfo->gidCount) > APP_MAX_GIDS) { in AppendPermissionGid() 597 GetProcessName(property), dacInfo->gidCount, permissionNode->section.gidCount); in AppendPermissionGid() [all...] |
H A D | appspawn_sandbox.h | 147 uint32_t gidCount : 16; member
|
H A D | sandbox_load.c | 319 section->gidCount = 0; in ParseGidTableConfig() 336 section->gidTable[section->gidCount++] = gid; in ParseGidTableConfig()
|
H A D | sandbox_utils.cpp | 852 if (dacInfo->gidCount < APP_MAX_GIDS) { in DoAddGid() 855 dacInfo->gidTable[dacInfo->gidCount++] = gids[i].get<uint32_t>(); in DoAddGid()
|
/base/startup/appspawn/interfaces/innerkits/include/ |
H A D | appspawn.h | 63 uint32_t gidCount; // the size of gidTable member
|
/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()
|
/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()
|
/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()
|
/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 default in HWTEST_F() 751 dacInfo.gidCount = 2; // 2 count in HWTEST_F() 774 dacInfo.gidCount = 2; // 2 count in HWTEST_F() 811 dacInfo.gidCount = 2; // 2 count in HWTEST_F()
|
H A D | app_spawn_interface_test.cpp | 237 dacInfo.gidCount = 2; // 2 count in HWTEST_F()
|
/base/startup/appspawn/modules/common/ |
H A D | appspawn_common.c | 234 int ret = setgroups(dacInfo->gidCount, (const gid_t *)(&dacInfo->gidTable[0])); in SetUidGid() 236 "setgroups failed: %{public}d, gids.size=%{public}u", errno, dacInfo->gidCount); in SetUidGid()
|
/base/startup/appspawn/standard/ |
H A D | appspawn_msgmgr.c | 384 dacInfo->uid, dacInfo->gid, dacInfo->gidCount); in DumpAppSpawnMsg() 385 for (uint32_t i = 0; i < dacInfo->gidCount; i++) { in DumpAppSpawnMsg()
|
/base/startup/appspawn/test/unittest/ |
H A D | app_spawn_test_helper.cpp | 460 dacInfo.gidCount = 2; // 2 count in AddDacInfo() 711 dacInfo.gidCount = 2; // 2 count in AddBaseTlv()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_sandbox_new_test.cpp | 1044 ASSERT_EQ(permissionNode->section.gidCount, 2); in HWTEST_F()
|