Home
last modified time | relevance | path

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

/freebsd/lib/libc/gen/
H A Dinitgroups.c52 long ngroups_max; in initgroups_impl() local
60 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2; in initgroups_impl()
61 groups = malloc(sizeof(*groups) * ngroups_max); in initgroups_impl()
65 ngroups = (int)ngroups_max; in initgroups_impl()
/freebsd/usr.bin/id/
H A Did.c273 long ngroups_max; in id_print() local
289 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in id_print()
290 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in id_print()
294 ngroups = ngroups_max; in id_print()
298 ngroups = getgroups(ngroups_max, groups); in id_print()
389 long ngroups_max; in group() local
393 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in group()
394 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL) in group()
398 ngroups = ngroups_max; in group()
401 ngroups = getgroups(ngroups_max, groups); in group()
/freebsd/sys/kern/
H A Dsubr_param.c96 int ngroups_max; /* max # groups per process */ variable
245 ngroups_max = NGROUPS_MAX; in init_param1()
246 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max); in init_param1()
247 if (ngroups_max < NGROUPS_MAX) in init_param1()
248 ngroups_max = NGROUPS_MAX; in init_param1()
252 if (ngroups_max > ngroups_max_max) in init_param1()
253 ngroups_max = ngroups_max_max; in init_param1()
H A Dkern_prot.c106 MPASS2(ngrp <= ngroups_max, "too many supplementary groups"); in groups_check_max_len()
553 if (wcred->sc_supp_groups_nb > ngroups_max) { in user_setcred_copyin_supp_groups()
689 wcred->sc_supp_groups_nb > ngroups_max) in kern_setcred()
1214 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0) in freebsd14_setgroups()
1261 if (gidsetsize > ngroups_max || gidsetsize < 0) in sys_setgroups()
1291 if (ngrp < 0 || ngrp > ngroups_max) in kern_setgroups()
2997 if (ngrp > ngroups_max) in crsetgroups()
2998 ngrp = ngroups_max; in crsetgroups()
H A Dkern_mib.c128 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
H A Dvfs_mount.c1530 if (export.ex_ngroups <= ngroups_max + 1) { in vfs_domount_update()
/freebsd/usr.sbin/chroot/
H A Dchroot.c98 long ngroups_max; in main() local
150 ngroups_max = sysconf(_SC_NGROUPS_MAX); in main()
151 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in main()
154 gids < ngroups_max; ) { in main()
160 if (p != NULL && gids == ngroups_max) in main()
/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.c92 if (ngrp < 0 || ngrp > ngroups_max) in linux_setgroups16()
H A Dlinux_misc.c1040 if (ngrp < 0 || ngrp > ngroups_max) 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.c1668 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()