/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 41 allocids(int flag, int nuids, int ngids) in allocids() argument 69 if (nuids < 0 || ngids < 0) in allocids() 74 if (err == 0 && (flag != 0 || ngids > 0)) in allocids() 75 err = eph_gid_alloc(zone, flag, &sg, ngids); in allocids() 154 sidsys(int op, int flag, int nuids, int ngids) in sidsys() argument 158 return (allocids(flag, nuids, ngids)); in sidsys()
|
/illumos-gate/usr/src/lib/lib9p/common/ |
H A D | genacl.c | 55 static bool l9p_ingroup(gid_t tid, gid_t gid, gid_t *gids, size_t ngids); 57 uid_t uid, gid_t gid, gid_t *gids, size_t ngids); 70 l9p_ingroup(gid_t tid, gid_t gid, gid_t *gids, size_t ngids) in l9p_ingroup() argument 76 for (i = 0; i < ngids; i++) in l9p_ingroup() 104 uid_t uid, gid_t gid, gid_t *gids, size_t ngids) in l9p_check_aces() argument 140 match = l9p_ingroup(st->st_gid, gid, gids, ngids); in l9p_check_aces() 157 match = l9p_ingroup(tid, gid, gids, ngids); in l9p_check_aces() 254 size_t ngids; in l9p_acl_check_access() local 267 ngids = args->aca_ngroups; in l9p_acl_check_access() 272 (u_int)opmask, (long)uid, (long)gid, ngids); in l9p_acl_check_access() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_auth.c | 320 cred_t *cr, uid_t *uid, gid_t *gid, uint_t *ngids, gid_t **gids) in nfsauth4_access() argument 324 access = nfsauth_access(exi, req, cr, uid, gid, ngids, gids); in nfsauth4_access() 667 uint_t ngids; in nfsauth_refresh_thread() local 738 p->auth_clnt_cred, &uid, &gid, &ngids, &gids); in nfsauth_refresh_thread() 751 kmem_free(gids, ngids * sizeof (gid_t)); in nfsauth_refresh_thread() 766 p->auth_srv_ngids = ngids; in nfsauth_refresh_thread() 856 cred_t *cr, uid_t *uid, gid_t *gid, uint_t *ngids, gid_t **gids) in nfsauth_cache_get() argument 1054 if (ngids != NULL && gids != NULL) { in nfsauth_cache_get() 1055 *ngids = tmpngids; in nfsauth_cache_get() 1098 if (ngids != NULL && gids != NULL) { in nfsauth_cache_get() [all …]
|
H A D | nfs_server.c | 2026 uint_t ngids; in checkauth() local 2086 access = nfsauth_access(exi, req, cr, &uid, &gid, &ngids, &gids); in checkauth() 2123 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth() 2166 (void) crsetgroups(cr, ngids, gids); in checkauth() 2169 kmem_free(gids, ngids * sizeof (gid_t)); in checkauth() 2288 uint_t ngids; in checkauth4() local 2330 access = nfsauth4_access(cs->exi, cs->vp, req, cr, &uid, &gid, &ngids, in checkauth4() 2362 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()
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | sidsys.c | 37 allocids(int flag, int nuids, uid_t *suid, int ngids, gid_t *sgid) in allocids() argument 42 e = __systemcall(&rv, SYS_sidsys, SIDSYS_ALLOC_IDS, flag, nuids, ngids); in allocids()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_deleg.c | 432 int ngids; in dsl_check_user_access() local 455 ngids = crgetngroups(cr); in dsl_check_user_access() 457 for (i = 0; i != ngids; i++) { in dsl_check_user_access() 515 int ngids, i; in dsl_load_user_sets() local 529 ngids = crgetngroups(cr); in dsl_load_user_sets() 531 for (i = 0; i != ngids; i++) { in dsl_load_user_sets()
|