Lines Matching refs:grp

1016     struct group grp;  in getUsersInGroup()  local
1019 int status = getgrnam_r(groupName.c_str(), &grp, buffer.data(), in getUsersInGroup()
1022 if (!status && (&grp == resultPtr)) in getUsersInGroup()
1024 for (; *(grp.gr_mem) != NULL; ++(grp.gr_mem)) in getUsersInGroup()
1026 usersInGroup.emplace_back(*(grp.gr_mem)); in getUsersInGroup()
1133 struct group grp; in isGroupMember() local
1137 auto status = getgrnam_r(groupName.c_str(), &grp, buffer.data(), in isGroupMember()
1152 status = getgrnam_r(groupName.c_str(), &grp, buffer.data(), in isGroupMember()
1159 if (!status && (&grp == grpPtr)) in isGroupMember()
1161 if (primaryGid == grp.gr_gid) in isGroupMember()
1166 for (auto i = 0; grp.gr_mem && grp.gr_mem[i]; ++i) in isGroupMember()
1168 if (userName == grp.gr_mem[i]) in isGroupMember()
1427 for (const char* grp : predefinedGroups) in initUserObjects() local
1429 if (grp == grpSsh) in initUserObjects()
1431 groupLists.emplace(grp, sshGrpUsersList); in initUserObjects()
1435 std::vector<std::string> grpUsersList = getUsersInGroup(grp); in initUserObjects()
1436 groupLists.emplace(grp, grpUsersList); in initUserObjects()
1439 for (auto& grp : privMgr) in initUserObjects() local
1441 std::vector<std::string> grpUsersList = getUsersInGroup(grp); in initUserObjects()
1442 groupLists.emplace(grp, grpUsersList); in initUserObjects()
1449 for (const auto& grp : groupLists) in initUserObjects() local
1451 std::vector<std::string> tempGrp = grp.second; in initUserObjects()
1455 if (std::find(privMgr.begin(), privMgr.end(), grp.first) != in initUserObjects()
1458 userPriv = grp.first; in initUserObjects()
1462 userGroups.emplace_back(grp.first); in initUserObjects()