Lines Matching full:ug

430 	struct unix_gid *ug = container_of(item, struct unix_gid, h);  in unix_gid_put()  local
433 put_group_info(ug->gi); in unix_gid_put()
434 kfree_rcu(ug, rcu); in unix_gid_put()
476 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request() local
478 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); in unix_gid_request()
496 struct unix_gid ug, *ugp; in unix_gid_parse() local
506 ug.uid = uid; in unix_gid_parse()
516 ug.gi = groups_alloc(gids); in unix_gid_parse()
517 if (!ug.gi) in unix_gid_parse()
530 ug.gi->gid[i] = kgid; in unix_gid_parse()
533 groups_sort(ug.gi); in unix_gid_parse()
537 ug.h.flags = 0; in unix_gid_parse()
538 ug.h.expiry_time = expiry; in unix_gid_parse()
540 &ug.h, &ugp->h, in unix_gid_parse()
551 if (ug.gi) in unix_gid_parse()
552 put_group_info(ug.gi); in unix_gid_parse()
561 struct unix_gid *ug; in unix_gid_show() local
569 ug = container_of(h, struct unix_gid, h); in unix_gid_show()
572 glen = ug->gi->ngroups; in unix_gid_show()
576 seq_printf(m, "%u %d:", from_kuid_munged(user_ns, ug->uid), glen); in unix_gid_show()
578 seq_printf(m, " %d", from_kgid_munged(user_ns, ug->gi->gid[i])); in unix_gid_show()
629 struct unix_gid ug; in unix_gid_lookup() local
632 ug.uid = uid; in unix_gid_lookup()
633 ch = sunrpc_cache_lookup_rcu(cd, &ug.h, unix_gid_hash(uid)); in unix_gid_lookup()
642 struct unix_gid *ug; in unix_gid_find() local
648 ug = unix_gid_lookup(sn->unix_gid_cache, uid); in unix_gid_find()
649 if (!ug) in unix_gid_find()
651 ret = cache_check(sn->unix_gid_cache, &ug->h, &rqstp->rq_chandle); in unix_gid_find()
658 gi = get_group_info(ug->gi); in unix_gid_find()
659 cache_put(&ug->h, sn->unix_gid_cache); in unix_gid_find()