Searched refs:gids (Results 1 - 7 of 7) sorted by relevance
/base/startup/appspawn/test/moduletest/ |
H A D | appspawn_module_test.cpp | 160 std::size_t GetGids(const int32_t &pid, std::vector<int32_t> &gids) in GetGids() argument 187 gids.push_back(atoi(gid)); in GetGids() 191 return gids.size(); in GetGids() 197 std::vector<int32_t> gids; in CheckGids() local 198 std::size_t gCount = GetGids(pid, gids); in CheckGids() 199 if ((gCount == newGids.size()) && (gids == newGids)) { in CheckGids() 208 std::vector<int32_t> gids; in CheckGidsCount() local 209 std::size_t gCount = GetGids(pid, gids); in CheckGidsCount() 1043 std::vector<int32_t> gids = {1008}; // 1008 gids in HWTEST_F() local 1067 std::vector<int32_t> gids = {20010045, 20010046}; // 20010045, 20010046 test gids HWTEST_F() local 1091 std::vector<int32_t> gids = {20010045, 20010046}; // 20010045, 20010046 test gids HWTEST_F() local 1114 std::vector<int32_t> gids = {1097, 1098}; // 1097, 1098 test gids HWTEST_F() local 1137 std::vector<int32_t> gids = {1097, 1098}; // 1097, 1098 test gids HWTEST_F() local [all...] |
/base/startup/appspawn/modules/sandbox/ |
H A D | sandbox_expand.c | 95 cJSON *gids = cJSON_GetObjectItemCaseSensitive(groups, "gid"); in MountAllGroup() local 99 APPSPAWN_CHECK(gids != NULL && cJSON_IsArray(gids), return -1, "MountAllGroup: invalid gids"); in MountAllGroup() 102 APPSPAWN_CHECK(count == cJSON_GetArraySize(gids), return -1, "MountAllGroup: sizes are not same"); in MountAllGroup()
|
H A D | sandbox_utils.cpp | 109 const char *g_gidPrefix = "gids"; 849 nlohmann::json& gids = appConfig[g_gidPrefix]; in DoAddGid() local 850 unsigned int gidSize = gids.size(); in DoAddGid() 854 bundleName.c_str(), permissionName, gids[i].get<uint32_t>()); in DoAddGid() 855 dacInfo->gidTable[dacInfo->gidCount++] = gids[i].get<uint32_t>(); in DoAddGid() 1296 nlohmann::json& gids = groups[g_groupList_key_gid]; in MountAllGroup() local 1298 APPSPAWN_CHECK(dataGroupIds.is_array() && gids.is_array() && dirs.is_array() && dataGroupIds.size() == gids.size() in MountAllGroup() 1304 APPSPAWN_CHECK(dataGroupIds[i].is_string() && gids[i].is_string() && dirs[i].is_string(), in MountAllGroup()
|
/base/startup/init/services/param/base/ |
H A D | param_base.c | 427 gid_t gids[64] = { 0 }; // max gid number
429 srcLabel->cred.pid, gids, sizeof(gids) / sizeof(gids[0]));
431 PARAM_LOGV("DacCheckGroupPermission gid %u", gids[index]);
432 if (gids[index] != node->gid) {
|
/base/startup/init/services/param/include/ |
H A D | param_common.h | 123 int (*getServiceGroupIdByPid)(pid_t pid, gid_t *gids, uint32_t gidSize);
|
/base/startup/init/interfaces/innerkits/include/ |
H A D | init_utils.h | 110 int GetServiceGroupIdByPid(pid_t pid, gid_t *gids, uint32_t gidSize);
|
/base/startup/init/services/init/ |
H A D | init_service_manager.c | 1310 int GetServiceGroupIdByPid(pid_t pid, gid_t *gids, uint32_t gidSize) in GetServiceGroupIdByPid() argument 1314 int ret = memcpy_s(gids, gidSize * sizeof(gid_t), in GetServiceGroupIdByPid() 1316 INIT_ERROR_CHECK(ret == 0, return 0, "Failed get copy gids"); in GetServiceGroupIdByPid()
|
Completed in 11 milliseconds