Searched refs:nsupp_groups (Results 1 - 2 of 2) sorted by relevance

/external/minijail/examples/
H A Ddrop_privs.cpp34 int nsupp_groups = getgroups(0, NULL); local
35 if (nsupp_groups < 0) {
38 if (nsupp_groups == 0) {
43 gid_t *list = (gid_t*)calloc((size_t)nsupp_groups, sizeof(gid_t));
44 nsupp_groups = getgroups(nsupp_groups, list);
45 if (nsupp_groups < 0) {
46 PLOG(FATAL) << "getgroups(nsupp_groups)";
48 for (size_t i = 0; i < (size_t)nsupp_groups; i++) {
/external/minijail/test/
H A Dlibminijail_test.cpp30 int nsupp_groups = getgroups(0, NULL); local
31 if (nsupp_groups < 0) {
35 if (nsupp_groups == 0) {
40 *plist = (gid_t*)calloc((size_t)nsupp_groups, sizeof(gid_t));
41 nsupp_groups = getgroups(nsupp_groups, *plist);
42 if (nsupp_groups < 0) {
43 PLOG(ERROR) << "getgroups(nsupp_groups)";
47 return nsupp_groups;
106 size_t nsupp_groups local
[all...]

Completed in 3251 milliseconds