Home
last modified time | relevance | path

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

/freebsd-13.1/lib/libc/gen/
H A Dinitgroups.c50 long ngroups_max; in initgroups() local
57 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2; in initgroups()
58 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) in initgroups()
61 ngroups = (int)ngroups_max; in initgroups()
/freebsd-13.1/usr.bin/id/
H A Did.c277 long ngroups_max; in id_print() local
290 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in id_print()
291 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in id_print()
295 ngroups = ngroups_max; in id_print()
299 ngroups = getgroups(ngroups_max, groups); in id_print()
386 long ngroups_max; in group() local
390 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in group()
391 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL) in group()
395 ngroups = ngroups_max; in group()
398 ngroups = getgroups(ngroups_max, groups); in group()
/freebsd-13.1/usr.sbin/chroot/
H A Dchroot.c73 long ngroups_max; in main() local
125 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in main()
126 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in main()
129 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) { in main()
146 if (p != NULL && gids == ngroups_max) in main()
/freebsd-13.1/sys/rpc/
H A Dauthunix_prot.c114 if (i + 1 < ngroups_max + 1) { in xdr_authunix_parms()
124 if (ngroups + 1 > ngroups_max + 1) in xdr_authunix_parms()
125 cred->cr_ngroups = ngroups_max + 1; in xdr_authunix_parms()
/freebsd-13.1/sys/kern/
H A Dsubr_param.c101 int ngroups_max; /* max # groups per process */ variable
223 ngroups_max = NGROUPS_MAX; in init_param1()
224 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max); in init_param1()
225 if (ngroups_max < NGROUPS_MAX) in init_param1()
226 ngroups_max = NGROUPS_MAX; in init_param1()
H A Dkern_prot.c807 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0) in sys_setgroups()
831 MPASS(ngrp <= ngroups_max + 1); in kern_setgroups()
2322 if (ngrp > ngroups_max + 1) in crsetgroups()
2323 ngrp = ngroups_max + 1; in crsetgroups()
H A Dkern_mib.c130 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
/freebsd-13.1/usr.sbin/chown/
H A Dchown.c266 static long ngroups_max; in chownerr() local
279 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; in chownerr()
280 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in chownerr()
282 ngroups = getgroups(ngroups_max, groups); in chownerr()
/freebsd-13.1/usr.sbin/lpr/lpc/
H A Dlpc.c357 static long ngroups_max; in ingroup() local
367 ngroups_max = sysconf(_SC_NGROUPS_MAX); in ingroup()
368 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) in ingroup()
370 ngroups = getgroups(ngroups_max, groups); in ingroup()
/freebsd-13.1/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dcred.h63 extern int ngroups_max;
/freebsd-13.1/sys/compat/linux/
H A Dlinux_uid16.c179 if (ngrp < 0 || ngrp >= ngroups_max + 1) { in linux_setgroups16()
H A Dlinux_misc.c1280 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
/freebsd-13.1/sys/sys/
H A Dsystm.h72 extern int ngroups_max; /* max # of supplemental groups */
/freebsd-13.1/sys/security/audit/
H A Daudit_arg.c274 KASSERT(gidset_size <= ngroups_max + 1, in audit_arg_groupset()
/freebsd-13.1/sys/compat/linprocfs/
H A Dlinprocfs.c1577 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()