Searched refs:ngroups_max (Results 1 - 15 of 15) sorted by relevance
/freebsd-current/lib/libc/gen/ |
H A D | initgroups.c | 46 long ngroups_max; local 53 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 2; 54 if ((groups = malloc(sizeof(*groups) * ngroups_max)) == NULL) 57 ngroups = (int)ngroups_max;
|
/freebsd-current/usr.sbin/chroot/ |
H A D | chroot.c | 59 long ngroups_max; local 111 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; 112 if ((gidlist = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 115 (p = strsep(&grouplist, ",")) != NULL && gids < ngroups_max; ) { 132 if (p != NULL && gids == ngroups_max)
|
/freebsd-current/sys/rpc/ |
H A D | authunix_prot.c | 108 if (i + 1 < ngroups_max + 1) { 118 if (ngroups + 1 > ngroups_max + 1) 119 cred->cr_ngroups = ngroups_max + 1;
|
/freebsd-current/usr.bin/id/ |
H A D | id.c | 263 long ngroups_max; local 276 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; 277 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 281 ngroups = ngroups_max; 285 ngroups = getgroups(ngroups_max, groups); 372 long ngroups_max; local 376 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; 377 if ((groups = malloc(sizeof(gid_t) * (ngroups_max))) == NULL) 381 ngroups = ngroups_max; 384 ngroups = getgroups(ngroups_max, group [all...] |
/freebsd-current/sys/kern/ |
H A D | subr_param.c | 95 int ngroups_max; /* max # groups per process */ variable 234 ngroups_max = NGROUPS_MAX; 235 TUNABLE_INT_FETCH("kern.ngroups", &ngroups_max); 236 if (ngroups_max < NGROUPS_MAX) 237 ngroups_max = NGROUPS_MAX;
|
H A D | kern_prot.c | 818 if (gidsetsize > ngroups_max + 1 || gidsetsize < 0) 842 MPASS(ngrp <= ngroups_max + 1); 2346 * Truncate the list to (ngroups_max + 1) if it is too large. 2352 if (ngrp > ngroups_max + 1) 2353 ngrp = ngroups_max + 1;
|
H A D | kern_mib.c | 126 CTLFLAG_NOFETCH | CTLFLAG_CAPRD, &ngroups_max, 0,
|
/freebsd-current/usr.sbin/chown/ |
H A D | chown.c | 251 static long ngroups_max; local 264 ngroups_max = sysconf(_SC_NGROUPS_MAX) + 1; 265 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 267 ngroups = getgroups(ngroups_max, groups);
|
/freebsd-current/usr.sbin/lpr/lpc/ |
H A D | lpc.c | 343 static long ngroups_max; local 353 ngroups_max = sysconf(_SC_NGROUPS_MAX); 354 if ((groups = malloc(sizeof(gid_t) * ngroups_max)) == NULL) 356 ngroups = getgroups(ngroups_max, groups);
|
/freebsd-current/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | cred.h | 63 extern int ngroups_max;
|
/freebsd-current/sys/compat/linux/ |
H A D | linux_uid16.c | 95 if (ngrp < 0 || ngrp >= ngroups_max + 1)
|
H A D | linux_misc.c | 1037 if (ngrp < 0 || ngrp >= ngroups_max + 1)
|
/freebsd-current/sys/sys/ |
H A D | systm.h | 69 extern int ngroups_max; /* max # of supplemental groups */
|
/freebsd-current/sys/security/audit/ |
H A D | audit_arg.c | 271 KASSERT(gidset_size <= ngroups_max + 1,
|
/freebsd-current/sys/compat/linprocfs/ |
H A D | linprocfs.c | 1668 * Filler function for proc/sys/kernel/ngroups_max 1676 sbuf_printf(sb, "%d\n", ngroups_max); 2215 pfs_create_file(dir, "ngroups_max", &linprocfs_dongroups_max,
|
Completed in 156 milliseconds