Home
last modified time | relevance | path

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

/freebsd-14.2/lib/libc/gen/
H A Dinitgroups.c48 long ngroups_max; in initgroups() local
55 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2; in initgroups()
56 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) in initgroups()
59 ngroups = (int)ngroups_max; in initgroups()
/freebsd-14.2/usr.bin/id/
H A Did.c275 long ngroups_max; in id_print() local
288 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in id_print()
289 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in id_print()
293 ngroups = ngroups_max; in id_print()
297 ngroups = getgroups(ngroups_max, groups); in id_print()
384 long ngroups_max; in group() local
388 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in group()
389 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL) in group()
393 ngroups = ngroups_max; in group()
396 ngroups = getgroups(ngroups_max, groups); in group()
/freebsd-14.2/usr.sbin/chroot/
H A Dchroot.c71 long ngroups_max; in main() local
123 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in main()
124 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in main()
127 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) { in main()
144 if (p != NULL && gids == ngroups_max) in main()
/freebsd-14.2/sys/rpc/
H A Dauthunix_prot.c112 if (i + 1 < ngroups_max + 1) { in xdr_authunix_parms()
122 if (ngroups + 1 > ngroups_max + 1) in xdr_authunix_parms()
123 cred->cr_ngroups = ngroups_max + 1; in xdr_authunix_parms()
/freebsd-14.2/sys/kern/
H A Dsubr_param.c96 int ngroups_max; /* max # groups per process */ variable
236 ngroups_max = NGROUPS_MAX; in init_param1()
237 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max); in init_param1()
238 if (ngroups_max < NGROUPS_MAX) in init_param1()
239 ngroups_max = NGROUPS_MAX; in init_param1()
H A Dkern_prot.c818 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0) in sys_setgroups()
842 MPASS(ngrp <= ngroups_max + 1); in kern_setgroups()
2370 if (ngrp > ngroups_max + 1) in crsetgroups()
2371 ngrp = ngroups_max + 1; in crsetgroups()
H A Dkern_mib.c128 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
/freebsd-14.2/usr.sbin/chown/
H A Dchown.c264 static long ngroups_max; in chownerr() local
277 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in chownerr()
278 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in chownerr()
280 ngroups = getgroups(ngroups_max, groups); in chownerr()
/freebsd-14.2/usr.sbin/lpr/lpc/
H A Dlpc.c355 static long ngroups_max; in ingroup() local
365 ngroups_max = sysconf(_SC_NGROUPS_MAX); in ingroup()
366 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in ingroup()
368 ngroups = getgroups(ngroups_max, groups); in ingroup()
/freebsd-14.2/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcred.h63 extern int ngroups_max;
/freebsd-14.2/sys/compat/linux/
H A Dlinux_uid16.c95 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups16()
H A Dlinux_misc.c1037 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
/freebsd-14.2/sys/sys/
H A Dsystm.h71 extern int ngroups_max; /* max # of supplemental groups */
/freebsd-14.2/sys/security/audit/
H A Daudit_arg.c272 KASSERT(gidset_size <= ngroups_max + 1, in audit_arg_groupset()
/freebsd-14.2/sys/compat/linprocfs/
H A Dlinprocfs.c1678 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()