Searched refs:num_groups (Results 1 – 2 of 2) sorted by relevance
71 int num_groups; in check_log_uid_permissions() local74 num_groups = getgroups(0, NULL); in check_log_uid_permissions()75 if (num_groups <= 0) { in check_log_uid_permissions()78 groups = static_cast<gid_t*>(calloc(num_groups, sizeof(gid_t))); in check_log_uid_permissions()82 num_groups = getgroups(num_groups, groups); in check_log_uid_permissions()83 while (num_groups > 0) { in check_log_uid_permissions()84 if (groups[num_groups - 1] == AID_LOG) { in check_log_uid_permissions()87 --num_groups; in check_log_uid_permissions()90 if (num_groups <= 0) { in check_log_uid_permissions()
1784 int num_groups = getgroups(0, NULL); in TEST() local1785 if (num_groups > 0) { in TEST()1786 gid_t groups[num_groups]; in TEST()1787 num_groups = getgroups(num_groups, groups); in TEST()1788 while (num_groups > 0) { in TEST()1789 if (groups[num_groups - 1] == AID_LOG) { in TEST()1792 --num_groups; in TEST()1795 if (num_groups <= 0) { in TEST()