/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | initgroups.c | 50 long ngroups_max; in initgroups() local 54 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) { in initgroups() 62 if (ngroups_max == 0) in initgroups() 65 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) { in initgroups() 71 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, 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() [all …]
|
/illumos-gate/usr/src/cmd/groups/ |
H A D | groups.c | 57 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 D | val_lgrp.c | 47 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 D | pcred.c | 59 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 D | param.c | 417 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 D | grpck.c | 101 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/lib/smbsrv/libmlsvc/common/ |
H A D | smb_logon.c | 208 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/sys/ |
H A D | cred_impl.h | 95 extern int ngroups_max;
|
H A D | ucred.h | 110 (ngroups_max - 1) * sizeof (gid_t))
|
H A D | cred.h | 63 extern int ngroups_max;
|
/illumos-gate/usr/src/lib/libfakekernel/common/sys/ |
H A D | cred.h | 59 extern int ngroups_max;
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | svcauthdes.c | 513 (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 D | groups.c | 54 if (n > ngroups_max || n < 0) in setgroups()
|
H A D | sysconfig.c | 76 return (ngroups_max); in sysconfig()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 154 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 D | elf_notes.c | 121 size = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in setup_note_header() 242 size_t crsize = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in write_elfnotes()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cred.c | 837 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 D | defs.h | 108 int ngroups_max; /* maximum number of process groups */ member
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 112 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 D | prvnops.c | 1051 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 D | nfs_auth.c | 1354 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 D | init.c | 1293 shgd->lim.ngroups_max = getconf("NGROUPS_MAX"); in sh_init()
|