Searched refs:ngroups_max (Results 1 – 16 of 16) sorted by relevance
/freebsd/lib/libc/gen/ |
H A D | initgroups.c | 46 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 D | id.c | 263 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 D | chroot.c | 59 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 D | subr_param.c | 95 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 D | kern_prot.c | 107 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 D | kern_mib.c | 128 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
|
H A D | vfs_mount.c | 1500 if (export.ex_ngroups <= ngroups_max + 1) { in vfs_domount_update()
|
/freebsd/sys/rpc/ |
H A D | authunix_prot.c | 108 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 D | chown.c | 251 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 D | lpc.c | 343 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 D | cred.h | 63 extern int ngroups_max;
|
/freebsd/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 | 1038 if (ngrp < 0 || ngrp >= ngroups_max + 1) in linux_setgroups()
|
/freebsd/sys/sys/ |
H A D | systm.h | 69 extern int ngroups_max; /* max # of supplemental groups */
|
/freebsd/sys/security/audit/ |
H A D | audit_arg.c | 271 KASSERT(gidset_size >= 0 && gidset_size <= ngroups_max + 1, in audit_arg_groupset()
|
/freebsd/sys/compat/linprocfs/ |
H A D | linprocfs.c | 1672 sbuf_printf(sb, "%d\n", ngroups_max); in linprocfs_dongroups_max()
|