Home
last modified time | relevance | path

Searched refs:gids (Results 1 – 24 of 24) sorted by relevance

/titanic_44/usr/src/lib/libgss/
H A Dgssd_pname_to_uid.c119 gid_t *gids[], in gsscred_expname_to_unix_cred_ext() argument
172 if (gids && gidsLen && gidOut) in gsscred_expname_to_unix_cred_ext()
174 gidOut, gids, gidsLen)); in gsscred_expname_to_unix_cred_ext()
187 gids, gidsLen); in gsscred_expname_to_unix_cred_ext()
217 gid_t *gids[], in gsscred_expname_to_unix_cred() argument
220 return (gsscred_expname_to_unix_cred_ext(expName, uidOut, gidOut, gids, in gsscred_expname_to_unix_cred()
232 private_gsscred_expname_to_unix_cred(expName, uidOut, gidOut, gids, gidsLen) in private_gsscred_expname_to_unix_cred() argument
236 gid_t *gids[];
248 if (gids && gidsLen && gidOut)
249 return (gss_get_group_info(*uidOut, gidOut, gids, gidsLen));
[all …]
/titanic_44/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_wksids.c252 smb_wka_token_groups(uint32_t flags, smb_ids_t *gids) in smb_wka_token_groups() argument
257 total_cnt = gids->i_cnt + 3; in smb_wka_token_groups()
259 gids->i_ids = realloc(gids->i_ids, total_cnt * sizeof (smb_id_t)); in smb_wka_token_groups()
260 if (gids->i_ids == NULL) in smb_wka_token_groups()
263 id = gids->i_ids + gids->i_cnt; in smb_wka_token_groups()
269 gids->i_cnt++; in smb_wka_token_groups()
281 gids->i_cnt++; in smb_wka_token_groups()
289 gids->i_cnt++; in smb_wka_token_groups()
H A Dsmb_sam.c313 smb_sam_usr_groups(smb_sid_t *user_sid, smb_ids_t *gids) in smb_sam_usr_groups() argument
334 else for (i = 0, ids = gids->i_ids; in smb_sam_usr_groups()
335 i < gids->i_cnt; i++, ids++) { in smb_sam_usr_groups()
365 new_gids.i_cnt = gids->i_cnt; in smb_sam_usr_groups()
366 total_cnt = gids->i_cnt + gcnt; in smb_sam_usr_groups()
372 (void) memcpy(new_gids.i_ids, gids->i_ids, in smb_sam_usr_groups()
373 gids->i_cnt * sizeof (smb_id_t)); in smb_sam_usr_groups()
374 new_ids = new_gids.i_ids + gids->i_cnt; in smb_sam_usr_groups()
385 else for (i = 0, ids = gids->i_ids; in smb_sam_usr_groups()
386 i < gids->i_cnt; i++, ids++) { in smb_sam_usr_groups()
[all …]
/titanic_44/usr/src/cmd/fm/fmd/common/
H A Dfmd_dispq.c235 fmd_dispq_dispatch_one(fmd_dispqelem_t *dep, ulong_t *gids, in fmd_dispq_dispatch_one() argument
244 if (BT_TEST(gids, gid) != 0) in fmd_dispq_dispatch_one()
251 BT_SET(gids, gid); in fmd_dispq_dispatch_one()
268 fmd_dispq_dispatchv(fmd_dispqelem_t *root, ulong_t *gids, in fmd_dispq_dispatchv() argument
275 return (fmd_dispq_dispatch_one(root, gids, ep, class)); in fmd_dispq_dispatchv()
278 n += fmd_dispq_dispatchv(dep, gids, ep, class, cc - 1, cv + 1); in fmd_dispq_dispatchv()
281 n += fmd_dispq_dispatchv(dep, gids, ep, class, cc - 1, cv + 1); in fmd_dispq_dispatchv()
284 n += fmd_dispq_dispatch_one(dep, gids, ep, class); in fmd_dispq_dispatchv()
315 ulong_t *gids; in fmd_dispq_dispatch_gid() local
354 gids = alloca(sizeof (ulong_t) * glen); in fmd_dispq_dispatch_gid()
[all …]
/titanic_44/usr/src/cmd/oamuser/user/
H A Dgroups.c50 edit_group(char *login, char *new_login, gid_t gids[], int overwrite) in edit_group() argument
160 if (overwrite || !gids) { in edit_group()
182 if (gids) { in edit_group()
183 for (i = 0; gids[i] != -1; i++) { in edit_group()
184 if (g_ptr->gr_gid == gids[i]) { in edit_group()
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs_auth.c290 cred_t *cr, uid_t *uid, gid_t *gid, uint_t *ngids, gid_t **gids) in nfsauth4_access() argument
295 access = nfsauth_access(exi, req, cr, uid, gid, ngids, gids); in nfsauth4_access()
635 gid_t *gids; in nfsauth_refresh_thread() local
706 &ngids, &gids); in nfsauth_refresh_thread()
719 kmem_free(gids, ngids * sizeof (gid_t)); in nfsauth_refresh_thread()
735 p->auth_srv_gids = gids; in nfsauth_refresh_thread()
809 cred_t *cr, uid_t *uid, gid_t *gid, uint_t *ngids, gid_t **gids) in nfsauth_cache_get() argument
1074 if (ngids != NULL && gids != NULL) { in nfsauth_cache_get()
1076 *gids = tmpgids; in nfsauth_cache_get()
1085 bcopy(*gids, tmpgids, in nfsauth_cache_get()
[all …]
H A Dnfs_server.c2026 gid_t *gids; in checkauth() local
2085 access = nfsauth_access(exi, req, cr, &uid, &gid, &ngids, &gids); in checkauth()
2122 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth()
2164 (void) crsetgroups(cr, ngids, gids); in checkauth()
2167 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth()
2287 gid_t *gids; in checkauth4() local
2329 &gids); in checkauth4()
2360 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth4()
2404 (void) crsetgroups(cr, ngids, gids); in checkauth4()
2407 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth4()
/titanic_44/usr/src/lib/smbsrv/libmlsvc/common/
H A Dnetr_logon.c673 netr_setup_domain_groups(struct netr_validation_info3 *info3, smb_ids_t *gids) in netr_setup_domain_groups() argument
683 total_cnt = gids->i_cnt + i; in netr_setup_domain_groups()
685 gids->i_ids = realloc(gids->i_ids, total_cnt * sizeof (smb_id_t)); in netr_setup_domain_groups()
686 if (gids->i_ids == NULL) in netr_setup_domain_groups()
691 ids = gids->i_ids + gids->i_cnt; in netr_setup_domain_groups()
692 for (i = 0; i < info3->GroupCount; i++, gids->i_cnt++, ids++) { in netr_setup_domain_groups()
709 gids->i_cnt++; in netr_setup_domain_groups()
714 for (i = 0; i < info3->SidCount; i++, gids->i_cnt++, ids++) { in netr_setup_domain_groups()
H A Dsmb_logon.c181 gid_t *gids; in smb_token_create_pxgrps() local
208 gids = (gid_t *)malloc(ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps()
209 if (gids == NULL) { in smb_token_create_pxgrps()
212 bzero(gids, ngroups_max * sizeof (gid_t)); in smb_token_create_pxgrps()
214 gids[0] = pwd->pw_gid; in smb_token_create_pxgrps()
220 num = _getgroupsbymember(pwd->pw_name, gids, ngroups_max, 1); in smb_token_create_pxgrps()
231 bcopy(gids, pgrps->pg_grps, num * sizeof (gid_t)); in smb_token_create_pxgrps()
234 free(gids); in smb_token_create_pxgrps()
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dauth_sys.c175 gid_t *gids = alloca(maxgrp * sizeof (gid_t)); in authsys_create_default() local
184 if ((len = getgroups(maxgrp, gids)) < 0) { in authsys_create_default()
190 return (authsys_create(machname, uid, gid, len, gids)); in authsys_create_default()
210 gid_t *gids = alloca(maxgrp * sizeof (gid_t)); in authsys_create_ruid() local
221 if ((len = getgroups(maxgrp, gids)) < 0) { in authsys_create_ruid()
228 res = authsys_create(machname, uid, gid, len, gids); in authsys_create_ruid()
H A Dkey_prot.c156 return (xdr_array(xdrs, (char **)&objp->gids.gids_val, in xdr_unixcred()
157 (uint_t *)&objp->gids.gids_len, MAXGIDS, in xdr_unixcred()
168 return (xdr_array(xdrs, (char **)&objp->gids.gids_val, in xdr_unixcred3()
169 (uint_t *)&objp->gids.gids_len, ~0, in xdr_unixcred3()
/titanic_44/usr/src/uts/common/gssapi/
H A Dgssapi_ext.h221 gid_t *gids[],
231 gid_t *gids[],
239 gid_t *gids[],
H A Dgssd_clnt_stubs.c2443 kgsscred_expname_to_unix_cred(expName, uidOut, gidOut, gids, gidsLen, uid) in kgsscred_expname_to_unix_cred() argument
2447 gid_t *gids[];
2467 if (gids)
2468 *gids = NULL;
2500 if (gids && gidsLen)
2502 *gids = res.gids.GSSCRED_GIDS_val;
2503 *gidsLen = res.gids.GSSCRED_GIDS_len;
2504 res.gids.GSSCRED_GIDS_val = NULL;
2505 res.gids.GSSCRED_GIDS_len = 0;
2517 kgsscred_name_to_unix_cred(intName, mechType, uidOut, gidOut, gids, in kgsscred_name_to_unix_cred() argument
[all …]
H A Dgssd.x356 GSSCRED_GIDS gids; /* array of principal's gids */ member
371 GSSCRED_GIDS gids; /* array of principal's gids */ member
383 GSSCRED_GIDS gids; /* array of principal's gids */ member
/titanic_44/usr/src/cmd/gss/gssd/
H A Dgssd_clnt_stubs.c2080 kgsscred_expname_to_unix_cred(expName, uidOut, gidOut, gids, gidsLen, uid) in kgsscred_expname_to_unix_cred() argument
2084 gid_t *gids[];
2103 if (gids)
2104 *gids = NULL;
2132 if (gids && gidsLen)
2134 *gids = res.gids.GSSCRED_GIDS_val;
2135 *gidsLen = res.gids.GSSCRED_GIDS_len;
2136 res.gids.GSSCRED_GIDS_val = NULL;
2137 res.gids.GSSCRED_GIDS_len = 0;
2148 kgsscred_name_to_unix_cred(intName, mechType, uidOut, gidOut, gids, in kgsscred_name_to_unix_cred() argument
[all …]
H A Dgssdtest.c1834 gid_t *gids, gidOut; local
1863 &gids, &gidsLen, uidIn);
1875 printf(" %d ", gids[i]);
1878 FREE(gids, gidsLen * sizeof (gid_t));
1895 gid_t *gids, gidOut; local
1957 &gidOut, &gids, &gidsLen, uid);
1975 printf(" %d ", gids[i]);
1978 FREE(gids, gidsLen * sizeof (gid_t));
1993 gid_t *gids, gidOut; local
2006 major = kgss_get_group_info(puid, &gidOut, &gids, &gidsLen, uidIn);
[all …]
H A Dgssd_proc.c2455 gid_t *gids, gidOut; local
2491 &gids, &gidsLen);
2497 res->gids.GSSCRED_GIDS_val = gids;
2498 res->gids.GSSCRED_GIDS_len = gidsLen;
2513 gid_t *gids, gidOut; local
2538 &gidOut, &gids, &gidsLen);
2543 res->gids.GSSCRED_GIDS_val = gids;
2544 res->gids.GSSCRED_GIDS_len = gidsLen;
2558 gid_t *gids, gidOut; local
2579 res->major = gss_get_group_info(uid, &gidOut, &gids, &gidsLen);
[all …]
/titanic_44/usr/src/uts/common/rpc/sec/
H A Dkey_prot.c113 if (!xdr_array(xdrs, (char **)&objp->gids.gids_val, in xdr_unixcred()
114 (uint_t *)&objp->gids.gids_len, MAXGIDS, in xdr_unixcred()
H A Dkey_call.c207 res.getcredres_u.cred.gids.gids_val = (uint_t *)groups; in netname2user()
223 *len = res.getcredres_u.cred.gids.gids_len; in netname2user()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Ddsl_deleg.c432 const gid_t *gids; in dsl_check_user_access() local
457 gids = crgetgroups(cr); in dsl_check_user_access()
459 id = gids[i]; in dsl_check_user_access()
515 const gid_t *gids; in dsl_load_user_sets() local
531 gids = crgetgroups(cr); in dsl_load_user_sets()
533 id = gids[i]; in dsl_load_user_sets()
/titanic_44/usr/src/uts/common/rpc/
H A Dkey_prot.x168 u_int gids<MAXGIDS>;
177 u_int gids<>;
/titanic_44/usr/src/lib/libbc/inc/include/rpc/
H A Dkey_prot.h98 } gids; member
/titanic_44/usr/src/cmd/keyserv/
H A Dkeyserv.c878 (int *)&cred->gids.gids_len,
879 (gid_t *)cred->gids.gids_val)) {
888 cred->uid, cred->gid, cred->gids.gids_len);
1112 uint_t gids[MAXGIDS]; local
1158 result.gres.getcredres_u.cred.gids.gids_val = gids;
/titanic_44/usr/src/cmd/tar/
H A Dtar.c6201 static cachenode_t *gids[HASHSIZE]; variable
6259 if (table == uids || table == gids) in hash_insert()
6285 if ((c = hash_lookup_byval(gids, gid)) == NULL) { in getgroup()
6287 c = hash_insert(gids, grent ? grent->gr_name : NULL, gid); in getgroup()