Lines Matching full:ug
429 struct unix_gid *ug = container_of(rcu, struct unix_gid, rcu); in unix_gid_free() local
430 struct cache_head *item = &ug->h; in unix_gid_free()
434 put_group_info(ug->gi); in unix_gid_free()
435 kfree(ug); in unix_gid_free()
441 struct unix_gid *ug = container_of(item, struct unix_gid, h); in unix_gid_put() local
443 call_rcu(&ug->rcu, unix_gid_free); in unix_gid_put()
485 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request() local
487 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); in unix_gid_request()
505 struct unix_gid ug, *ugp; in unix_gid_parse() local
515 ug.uid = uid; in unix_gid_parse()
525 ug.gi = groups_alloc(gids); in unix_gid_parse()
526 if (!ug.gi) in unix_gid_parse()
539 ug.gi->gid[i] = kgid; in unix_gid_parse()
542 groups_sort(ug.gi); in unix_gid_parse()
546 ug.h.flags = 0; in unix_gid_parse()
547 ug.h.expiry_time = expiry; in unix_gid_parse()
549 &ug.h, &ugp->h, in unix_gid_parse()
560 if (ug.gi) in unix_gid_parse()
561 put_group_info(ug.gi); in unix_gid_parse()
570 struct unix_gid *ug; in unix_gid_show() local
578 ug = container_of(h, struct unix_gid, h); in unix_gid_show()
581 glen = ug->gi->ngroups; in unix_gid_show()
585 seq_printf(m, "%u %d:", from_kuid_munged(user_ns, ug->uid), glen); in unix_gid_show()
587 seq_printf(m, " %d", from_kgid_munged(user_ns, ug->gi->gid[i])); in unix_gid_show()
638 struct unix_gid ug; in unix_gid_lookup() local
641 ug.uid = uid; in unix_gid_lookup()
642 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
651 struct unix_gid *ug; in unix_gid_find() local
657 ug = unix_gid_lookup(sn->unix_gid_cache, uid); in unix_gid_find()
658 if (!ug) in unix_gid_find()
660 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
667 gi = get_group_info(ug->gi); in unix_gid_find()
668 cache_put(&ug->h, sn->unix_gid_cache); in unix_gid_find()