Home
last modified time | relevance | path

Searched refs:ngroups_max (Results 1 – 16 of 16) sorted by relevance

/freebsd/lib/libc/gen/
H A Dinitgroups.c46 long ngroups_max; in initgroups() local
53 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2; in initgroups()
54 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) in initgroups()
57 ngroups = (int)ngroups_max; in initgroups()
/freebsd/usr.bin/id/
H A Did.c263 long ngroups_max; in id_print() local
276 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in id_print()
277 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in id_print()
281 ngroups = ngroups_max; in id_print()
285 ngroups = getgroups(ngroups_max, groups); in id_print()
372 long ngroups_max; in group() local
376 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in group()
377 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL) in group()
381 ngroups = ngroups_max; in group()
384 ngroups = getgroups(ngroups_max, groups); in group()
/freebsd/usr.sbin/chroot/
H A Dchroot.c59 long ngroups_max; in main() local
111 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in main()
112 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in main()
115 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) { in main()
132 if (p != NULL && gids == ngroups_max) in main()
/freebsd/sys/kern/
H A Dsubr_param.c95 int ngroups_max; /* max # groups per process */ variable
247 ngroups_max = NGROUPS_MAX; in init_param1()
248 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max); in init_param1()
249 if (ngroups_max < NGROUPS_MAX) in init_param1()
250 ngroups_max = NGROUPS_MAX; in init_param1()
254 if (ngroups_max > ngroups_max_max) in init_param1()
255 ngroups_max = ngroups_max_max; in init_param1()
H A Dkern_prot.c107 MPASS2(ngrp <= ngroups_max + 1, "too many groups"); in groups_check_max_len()
519 if (wcred->sc_supp_groups_nb > ngroups_max) in kern_setcred_copyin_supp_groups()
684 if (wcred->sc_supp_groups_nb > ngroups_max) in kern_setcred()
1209 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0) in sys_setgroups()
1239 if (ngrp < 0 || ngrp > ngroups_max + 1) in kern_setgroups()
2873 if (ngrp > ngroups_max + 1) in crsetgroups()
2874 ngrp = ngroups_max + 1; in crsetgroups()
H A Dkern_mib.c128 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
H A Dvfs_mount.c1500 if (export.ex_ngroups <= ngroups_max + 1) { in vfs_domount_update()
/freebsd/sys/rpc/
H A Dauthunix_prot.c108 if (i + 1 < ngroups_max + 1) { in xdr_authunix_parms()
118 if (ngroups + 1 > ngroups_max + 1) in xdr_authunix_parms()
119 cred->cr_ngroups = ngroups_max + 1; in xdr_authunix_parms()
/freebsd/usr.sbin/chown/
H A Dchown.c251 static long ngroups_max; in chownerr() local
264 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in chownerr()
265 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in chownerr()
267 ngroups = getgroups(ngroups_max, groups); in chownerr()
/freebsd/usr.sbin/lpr/lpc/
H A Dlpc.c343 static long ngroups_max; in ingroup() local
353 ngroups_max = sysconf(_SC_NGROUPS_MAX); in ingroup()
354 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in ingroup()
356 ngroups = getgroups(ngroups_max, groups); in ingroup()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcred.h63 extern int ngroups_max;
/freebsd/sys/compat/linux/
H A Dlinux_uid16.c95 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups16()
H A Dlinux_misc.c1038 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
/freebsd/sys/sys/
H A Dsystm.h69 extern int ngroups_max; /* max # of supplemental groups */
/freebsd/sys/security/audit/
H A Daudit_arg.c271 KASSERT(gidset_size >= 0 && gidset_size <= ngroups_max + 1, in audit_arg_groupset()
/freebsd/sys/compat/linprocfs/
H A Dlinprocfs.c1672 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()