Home
last modified time | relevance | path

Searched refs:gidCount (Results 1 - 15 of 15) sorted by relevance

/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()
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 Dappspawn_sandbox.h147 uint32_t gidCount : 16; member
H A Dsandbox_load.c319 section->gidCount = 0; in ParseGidTableConfig()
336 section->gidTable[section->gidCount++] = gid; in ParseGidTableConfig()
H A Dsandbox_utils.cpp852 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 Dappspawn.h63 uint32_t gidCount; // the size of gidTable member
/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()
/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()
/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()
/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 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 Dapp_spawn_interface_test.cpp237 dacInfo.gidCount = 2; // 2 count in HWTEST_F()
/base/startup/appspawn/modules/common/
H A Dappspawn_common.c234 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 Dappspawn_msgmgr.c384 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 Dapp_spawn_test_helper.cpp460 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 Dapp_spawn_sandbox_new_test.cpp1044 ASSERT_EQ(permissionNode->section.gidCount, 2); in HWTEST_F()

Completed in 22 milliseconds