Searched refs:ngroups_max (Results 1 - 15 of 15) sorted by relevance

/freebsd-current/lib/libc/gen/
H A Dinitgroups.c46 long ngroups_max; local
53 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2;
54 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL)
57 ngroups = (int)ngroups_max;
/freebsd-current/usr.sbin/chroot/
H A Dchroot.c59 long ngroups_max; local
111 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
112 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
115 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) {
132 if (p != NULL && gids == ngroups_max)
/freebsd-current/sys/rpc/
H A Dauthunix_prot.c108 if (i + 1 < ngroups_max + 1) {
118 if (ngroups + 1 > ngroups_max + 1)
119 cred->cr_ngroups = ngroups_max + 1;
/freebsd-current/usr.bin/id/
H A Did.c263 long ngroups_max; local
276 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
277 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
281 ngroups = ngroups_max;
285 ngroups = getgroups(ngroups_max, groups);
372 long ngroups_max; local
376 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
377 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL)
381 ngroups = ngroups_max;
384 ngroups = getgroups(ngroups_max, group
[all...]
/freebsd-current/sys/kern/
H A Dsubr_param.c95 int ngroups_max; /* max # groups per process */ variable
234 ngroups_max = NGROUPS_MAX;
235 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max);
236 if (ngroups_max < NGROUPS_MAX)
237 ngroups_max = NGROUPS_MAX;
H A Dkern_prot.c818 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0)
842 MPASS(ngrp <= ngroups_max + 1);
2346 * Truncate the list to (ngroups_max + 1) if it is too large.
2352 if (ngrp > ngroups_max + 1)
2353 ngrp = ngroups_max + 1;
H A Dkern_mib.c126 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
/freebsd-current/usr.sbin/chown/
H A Dchown.c251 static long ngroups_max; local
264 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1;
265 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
267 ngroups = getgroups(ngroups_max, groups);
/freebsd-current/usr.sbin/lpr/lpc/
H A Dlpc.c343 static long ngroups_max; local
353 ngroups_max = sysconf(_SC_NGROUPS_MAX);
354 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL)
356 ngroups = getgroups(ngroups_max, groups);
/freebsd-current/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcred.h63 extern int ngroups_max;
/freebsd-current/sys/compat/linux/
H A Dlinux_uid16.c95 if (ngrp < 0 || ngrp >= ngroups_max + 1)
H A Dlinux_misc.c1037 if (ngrp < 0 || ngrp >= ngroups_max + 1)
/freebsd-current/sys/sys/
H A Dsystm.h69 extern int ngroups_max; /* max # of supplemental groups */
/freebsd-current/sys/security/audit/
H A Daudit_arg.c271 KASSERT(gidset_size <= ngroups_max + 1,
/freebsd-current/sys/compat/linprocfs/
H A Dlinprocfs.c1668 * Filler function for proc/sys/kernel/ngroups_max
1676 sbuf_printf(sb, "%d\n", ngroups_max);
2215 pfs_create_file(dir, "ngroups_max", &linprocfs_dongroups_max,

Completed in 156 milliseconds