Searched refs:num_groups (Results 1 – 2 of 2) sorted by relevance
62 int num_groups; in check_log_uid_permissions() local65 num_groups = getgroups(0, NULL); in check_log_uid_permissions()66 if (num_groups <= 0) { in check_log_uid_permissions()69 groups = static_cast<gid_t*>(calloc(num_groups, sizeof(gid_t))); in check_log_uid_permissions()73 num_groups = getgroups(num_groups, groups); in check_log_uid_permissions()74 while (num_groups > 0) { in check_log_uid_permissions()75 if (groups[num_groups - 1] == AID_LOG) { in check_log_uid_permissions()78 --num_groups; in check_log_uid_permissions()81 if (num_groups <= 0) { in check_log_uid_permissions()
1989 int num_groups = getgroups(0, NULL); in TEST() local1990 if (num_groups > 0) { in TEST()1991 gid_t groups[num_groups]; in TEST()1992 num_groups = getgroups(num_groups, groups); in TEST()1993 while (num_groups > 0) { in TEST()1994 if (groups[num_groups - 1] == AID_LOG) { in TEST()1997 --num_groups; in TEST()2000 if (num_groups <= 0) { in TEST()