Searched refs:ngroups_max (Results 1 – 15 of 15) sorted by relevance
| /freebsd-14.2/lib/libc/gen/ |
| H A D | initgroups.c | 48 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 D | id.c | 275 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 D | chroot.c | 71 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 D | authunix_prot.c | 112 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 D | subr_param.c | 96 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 D | kern_prot.c | 818 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 D | kern_mib.c | 128 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
|
| /freebsd-14.2/usr.sbin/chown/ |
| H A D | chown.c | 264 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 D | lpc.c | 355 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 D | cred.h | 63 extern int ngroups_max;
|
| /freebsd-14.2/sys/compat/linux/ |
| H A D | linux_uid16.c | 95 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups16()
|
| H A D | linux_misc.c | 1037 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
|
| /freebsd-14.2/sys/sys/ |
| H A D | systm.h | 71 extern int ngroups_max; /* max # of supplemental groups */
|
| /freebsd-14.2/sys/security/audit/ |
| H A D | audit_arg.c | 272 KASSERT(gidset_size <= ngroups_max + 1, in audit_arg_groupset()
|
| /freebsd-14.2/sys/compat/linprocfs/ |
| H A D | linprocfs.c | 1678 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()
|