Lines Matching full:ug

422 	struct unix_gid *ug = container_of(rcu, struct unix_gid, rcu);  in unix_gid_free()  local
423 struct cache_head *item = &ug->h; in unix_gid_free()
427 put_group_info(ug->gi); in unix_gid_free()
428 kfree(ug); in unix_gid_free()
434 struct unix_gid *ug = container_of(item, struct unix_gid, h); in unix_gid_put() local
436 call_rcu(&ug->rcu, unix_gid_free); in unix_gid_put()
478 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request() local
480 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); in unix_gid_request()
498 struct unix_gid ug, *ugp; in unix_gid_parse() local
508 ug.uid = uid; in unix_gid_parse()
518 ug.gi = groups_alloc(gids); in unix_gid_parse()
519 if (!ug.gi) in unix_gid_parse()
532 ug.gi->gid[i] = kgid; in unix_gid_parse()
535 groups_sort(ug.gi); in unix_gid_parse()
539 ug.h.flags = 0; in unix_gid_parse()
540 ug.h.expiry_time = expiry; in unix_gid_parse()
542 &ug.h, &ugp->h, in unix_gid_parse()
553 if (ug.gi) in unix_gid_parse()
554 put_group_info(ug.gi); in unix_gid_parse()
563 struct unix_gid *ug; in unix_gid_show() local
571 ug = container_of(h, struct unix_gid, h); in unix_gid_show()
574 glen = ug->gi->ngroups; in unix_gid_show()
578 seq_printf(m, "%u %d:", from_kuid_munged(user_ns, ug->uid), glen); in unix_gid_show()
580 seq_printf(m, " %d", from_kgid_munged(user_ns, ug->gi->gid[i])); in unix_gid_show()
631 struct unix_gid ug; in unix_gid_lookup() local
634 ug.uid = uid; in unix_gid_lookup()
635 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
644 struct unix_gid *ug; in unix_gid_find() local
650 ug = unix_gid_lookup(sn->unix_gid_cache, uid); in unix_gid_find()
651 if (!ug) in unix_gid_find()
653 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
660 gi = get_group_info(ug->gi); in unix_gid_find()
661 cache_put(&ug->h, sn->unix_gid_cache); in unix_gid_find()