Home
last modified time | relevance | path

Searched refs:num_groups (Results 1 – 2 of 2) sorted by relevance

/system/core/liblog/
Dlogger_write.cpp71 int num_groups; in check_log_uid_permissions() local
74 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()
/system/core/liblog/tests/
Dliblog_test.cpp1784 int num_groups = getgroups(0, NULL); in TEST() local
1785 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()