Lines Matching refs:uid

13                 uid_t uid;  member
24 static int build_user_json(const char *user_name, uid_t uid, JsonVariant **ret) { in build_user_json() argument
26 assert(uid_is_valid(uid)); in build_user_json()
32 JSON_BUILD_PAIR("uid", JSON_BUILD_UNSIGNED(uid)), in build_user_json()
33 JSON_BUILD_PAIR("gid", JSON_BUILD_UNSIGNED(uid)), in build_user_json()
42 static bool user_match_lookup_parameters(LookupParameters *p, const char *name, uid_t uid) { in user_match_lookup_parameters() argument
48 if (uid_is_valid(p->uid) && uid != p->uid) in user_match_lookup_parameters()
252 …N_VARIANT_UNSIGNED, json_dispatch_uid_gid, offsetof(LookupParameters, uid), 0 }, in vl_method_get_user_record()
260 .uid = UID_INVALID, in vl_method_get_user_record()
263 uid_t found_uid = UID_INVALID, uid; in vl_method_get_user_record() local
278 if (uid_is_valid(p.uid)) in vl_method_get_user_record()
279 r = dynamic_user_lookup_uid(m, p.uid, &found_name); in vl_method_get_user_record()
286 r = dynamic_user_current(d, &uid); in vl_method_get_user_record()
292 if (!user_match_lookup_parameters(&p, d->name, uid)) in vl_method_get_user_record()
303 r = build_user_json(d->name, uid, &v); in vl_method_get_user_record()
318 uid = uid_is_valid(found_uid) ? found_uid : p.uid; in vl_method_get_user_record()
321 if (!user_match_lookup_parameters(&p, un, uid)) in vl_method_get_user_record()
324 r = build_user_json(un, uid, &v); in vl_method_get_user_record()
394 uid_t uid; in vl_method_get_group_record() local
396 r = dynamic_user_current(d, &uid); in vl_method_get_group_record()
402 if (!group_match_lookup_parameters(&p, d->name, (gid_t) uid)) in vl_method_get_group_record()
413 r = build_group_json(d->name, (gid_t) uid, &v); in vl_method_get_group_record()