Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dinitgroups.c50 long ngroups_max; in initgroups() local
62 if (ngroups_max == 0) in initgroups()
94 long ngroups_max; in getgrouplist() local
102 ngroups_max = sysconf(_SC_NGROUPS_MAX); in getgrouplist()
103 if (ngroups_max > INT_MAX) in getgrouplist()
104 ngroups_max = INT_MAX; in getgrouplist()
105 else if (ngroups_max < 0) in getgrouplist()
107 VERIFY3S(ngroups_max, >, 0); in getgrouplist()
143 *ngroups = ngroups_max; in getgrouplist()
148 if (*ngroups < ngroups_max) { in getgrouplist()
[all …]
/illumos-gate/usr/src/cmd/groups/
H A Dgroups.c57 static int ngroups_max; variable
65 ngroups_max = sysconf(_SC_NGROUPS_MAX); in main()
67 if (ngroups_max < 0) { in main()
73 if (ngroups_max == 0) in main()
110 if ((groups = (gid_t *)calloc((uint_t)ngroups_max, in showgroups()
114 ngroups_max * sizeof (gid_t)); in showgroups()
120 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dval_lgrp.c47 static int ngroups_max = 0; variable
62 if (ngroups_max == 0) { in valid_lgroup()
63 ngroups_max = sysconf(_SC_NGROUPS_MAX); in valid_lgroup()
64 grplist = malloc((ngroups_max + 1) * sizeof (gid_t)); in valid_lgroup()
108 if( i >= ngroups_max ) { in valid_lgroup()
109 errmsg( M_MAXGROUPS, ngroups_max ); in valid_lgroup()
/illumos-gate/usr/src/cmd/ptools/pcred/
H A Dpcred.c59 static long ngroups_max; variable
76 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) in main()
164 (ngroups_max - 1) * sizeof (gid_t)); in look()
179 if (Pcred(Pr, prcred, ngroups_max) == -1) { in look()
294 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) { in initcred()
312 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred()
340 if (ngrp >= ngroups_max) { in initcred()
/illumos-gate/usr/src/uts/common/conf/
H A Dparam.c417 int ngroups_max = NGROUPS_MAX_DEFAULT; variable
689 if (ngroups_max < NGROUPS_UMIN) in param_check()
690 ngroups_max = NGROUPS_UMIN; in param_check()
691 if (ngroups_max > NGROUPS_UMAX) in param_check()
692 ngroups_max = NGROUPS_UMAX; in param_check()
695 if (ngroups_max > NGROUPS_OLDMAX && in param_check()
696 strctlsz < (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) + 1024) { in param_check()
697 strctlsz = (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) + in param_check()
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c101 int ngroups_max; in main() local
117 ngroups_max = sysconf(_SC_NGROUPS_MAX); in main()
139 if (!ngroups_max) in main()
321 if (!ngroups_max) in main()
332 if (!ngroups_max) in main()
370 if (ngroups_max) { in main()
372 if (t->ngroups > ngroups_max) { in main()
/illumos-gate/usr/src/uts/common/sys/
H A Dcred_impl.h95 extern int ngroups_max;
H A Ducred.h110 (ngroups_max - 1) * sizeof (gid_t))
H A Dcred.h63 extern int ngroups_max;
/illumos-gate/usr/src/lib/libfakekernel/common/sys/
H A Dcred.h59 extern int ngroups_max;
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_logon.c208 int ngroups_max, num; in smb_token_create_pxgrps() local
211 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) { in smb_token_create_pxgrps()
236 gids = (gid_t *)malloc(ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps()
240 bzero(gids, ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps()
248 num = _getgroupsbymember(pwd->pw_name, gids, ngroups_max, 1); in smb_token_create_pxgrps()
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dsvcauthdes.c513 (ngroups_max - 1) * sizeof (gid_t), KM_NOSLEEP))) { in authdes_cache_new()
624 (ngroups_max - 1) * sizeof (gid_t)); in authdes_cache_reclaim()
673 (ngroups_max - 1) * sizeof (gid_t)); in sweep_cache()
/illumos-gate/usr/src/uts/common/syscall/
H A Dgroups.c54 if (n > ngroups_max || n < 0) in setgroups()
H A Dsysconfig.c76 return (ngroups_max); in sysconfig()
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c154 static long ngroups_max; /* _SC_NGROUPS_MAX */ variable
639 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) == -1) { in main()
2323 gid_t *tmpgrps = alloca(ngroups_max * sizeof (gid_t)); in getusergroups()
2331 tmpngrps = _getgroupsbymember(pwd.pw_name, tmpgrps, ngroups_max, 1); in getusergroups()
2456 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS) in check_client_old()
2815 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS) in check_client_new()
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf_notes.c120 size = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in setup_note_header()
201 size_t crsize = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in write_elfnotes()
/illumos-gate/usr/src/uts/common/os/
H A Dcred.c837 if (n > ngroups_max || n < 0) in crsetgroups()
1008 ndiff = ngroups_max - 1; /* Needs one for prcred_t */ in ucredminsize()
1010 ndiff = ngroups_max - cr->cr_grps->crg_ngroups; in ucredminsize()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h108 int ngroups_max; /* maximum number of process groups */ member
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprcontrol.c112 if (cred->pr_ngroups < 0 || cred->pr_ngroups > ngroups_max) { in prwritectl_pcscredx_sizef()
802 if (cred->pr_ngroups < 0 || cred->pr_ngroups > ngroups_max) { in prwritectl_pcscredx32_sizef()
2306 if (ngrp < 0 || ngrp > ngroups_max) in pr_scred()
H A Dprvnops.c1051 kmem_zalloc(sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1), in pr_read_cred()
1067 kmem_free(pcrp, sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1)); in pr_read_cred()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_auth.c1354 if ((perm & (M_ROOT | M_NONE | M_MAP)) == 0 && (ngroups_max <= NGRPS || in nfsauth_access()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dinit.c1293 shgd->lim.ngroups_max = getconf("NGROUPS_MAX"); in sh_init()