/titanic_44/usr/src/cmd/groups/ |
H A D | groups.c | 59 static int ngroups_max; variable 67 ngroups_max = sysconf(_SC_NGROUPS_MAX); in main() 69 if (ngroups_max < 0) { in main() 75 if (ngroups_max == 0) in main() 112 if ((groups = (gid_t *)calloc((uint_t)ngroups_max, in showgroups() 116 ngroups_max * sizeof (gid_t)); in showgroups() 122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); in showgroups()
|
/titanic_44/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()
|
/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | initgroups.c | 49 long ngroups_max; in initgroups() local 53 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) { in initgroups() 61 if (ngroups_max == 0) in initgroups() 64 if ((groups = (gid_t *)calloc(ngroups_max, sizeof (gid_t))) == 0) { in initgroups() 70 ngroups = _getgroupsbymember(uname, groups, (int)ngroups_max, in initgroups()
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | uidswap.c | 49 static int ngroups_max = -1; variable 81 if (ngroups_max < 0) { in temporarily_use_uid() 82 ngroups_max = sysconf(_SC_NGROUPS_MAX); in temporarily_use_uid() 83 saved_egroups = malloc(ngroups_max * sizeof (gid_t)); in temporarily_use_uid() 84 user_groups = malloc(ngroups_max * sizeof (gid_t)); in temporarily_use_uid() 89 saved_egroupslen = getgroups(ngroups_max, saved_egroups); in temporarily_use_uid() 98 user_groupslen = getgroups(ngroups_max, user_groups); in temporarily_use_uid()
|
/titanic_44/usr/src/cmd/ptools/pcred/ |
H A D | pcred.c | 61 static long ngroups_max; variable 78 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) in main() 166 (ngroups_max - 1) * sizeof (gid_t)); in look() 181 if (Pcred(Pr, prcred, ngroups_max) == -1) { in look() 296 if ((groups = malloc(ngroups_max * sizeof (gid_t))) == NULL) { in initcred() 314 ngrp = _getgroupsbymember(login, groups, (int)ngroups_max, 1); in initcred() 342 if (ngrp >= ngroups_max) { in initcred()
|
/titanic_44/usr/src/uts/common/conf/ |
H A D | param.c | 432 int ngroups_max = NGROUPS_MAX_DEFAULT; variable 710 if (ngroups_max < NGROUPS_UMIN) in param_check() 711 ngroups_max = NGROUPS_UMIN; in param_check() 712 if (ngroups_max > NGROUPS_UMAX) in param_check() 713 ngroups_max = NGROUPS_UMAX; in param_check() 716 if (ngroups_max > NGROUPS_OLDMAX && in param_check() 717 strctlsz < (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) + 1024) { in param_check() 718 strctlsz = (ngroups_max - NGROUPS_OLDMAX) * sizeof (gid_t) + in param_check()
|
/titanic_44/usr/src/cmd/grpck/ |
H A D | grpck.c | 104 int ngroups_max; in main() local 120 ngroups_max = sysconf(_SC_NGROUPS_MAX); in main() 142 if (!ngroups_max) in main() 324 if (!ngroups_max) in main() 335 if (!ngroups_max) in main() 373 if (ngroups_max) { in main() 375 if (t->ngroups > ngroups_max) { in main()
|
/titanic_44/usr/src/lib/libfakekernel/common/sys/ |
H A D | cred.h | 57 extern int ngroups_max;
|
/titanic_44/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;
|
/titanic_44/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_logon.c | 180 int ngroups_max, num; in smb_token_create_pxgrps() local 183 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) < 0) { in smb_token_create_pxgrps() 208 gids = (gid_t *)malloc(ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps() 212 bzero(gids, ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps() 220 num = _getgroupsbymember(pwd->pw_name, gids, ngroups_max, 1); in smb_token_create_pxgrps()
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | groups.c | 54 if (n > ngroups_max || n < 0) in setgroups()
|
H A D | sysconfig.c | 74 return (ngroups_max); in sysconfig()
|
/titanic_44/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()
|
/titanic_44/usr/src/cmd/fs.d/nfs/mountd/ |
H A D | mountd.c | 147 static long ngroups_max; /* _SC_NGROUPS_MAX */ variable 544 if ((ngroups_max = sysconf(_SC_NGROUPS_MAX)) == -1) { in main() 2172 gid_t *tmpgrps = alloca(ngroups_max * sizeof (gid_t)); in getusergroups() 2180 tmpngrps = _getgroupsbymember(pwd.pw_name, tmpgrps, ngroups_max, 1); in getusergroups() 2305 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS) in check_client_old() 2664 if (flavor == AUTH_SYS && clnt_ngids == NGRPS && ngroups_max > NGRPS) in check_client_new()
|
/titanic_44/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 116 size = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in setup_note_header() 188 size_t crsize = sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1); in write_elfnotes()
|
/titanic_44/usr/src/lib/libshell/common/include/ |
H A D | defs.h | 108 int ngroups_max; /* maximum number of process groups */ member
|
/titanic_44/usr/src/uts/common/os/ |
H A D | cred.c | 834 if (n > ngroups_max || n < 0) in crsetgroups() 1005 ndiff = ngroups_max - 1; /* Needs one for prcred_t */ in ucredminsize() 1007 ndiff = ngroups_max - cr->cr_grps->crg_ngroups; in ucredminsize()
|
/titanic_44/usr/src/uts/common/fs/proc/ |
H A D | prcontrol.c | 185 if (ngrp < 0 || ngrp > ngroups_max) in ctlsize() 603 if (ngrp < 0 || ngrp > ngroups_max) in ctlsize32() 2188 if (ngrp < 0 || ngrp > ngroups_max) in pr_scred()
|
H A D | prvnops.c | 956 kmem_alloc(sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1), in pr_read_cred() 972 kmem_free(pcrp, sizeof (prcred_t) + sizeof (gid_t) * (ngroups_max - 1)); in pr_read_cred()
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs_auth.c | 1357 if ((perm & (M_ROOT | M_NONE | M_MAP)) == 0 && (ngroups_max <= NGRPS || in nfsauth_access()
|
/titanic_44/usr/src/lib/libshell/common/sh/ |
H A D | init.c | 1107 shp->lim.ngroups_max = getconf("NGROUPS_MAX"); in sh_init()
|