Lines Matching refs:rid
74 uint32_t *rid; member
426 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getuidbysid() argument
442 if (kidmap_cache_lookup_uidbysid(&zs->cache, sid_prefix, rid, uid) in kidmap_getuidbysid()
449 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getuidbysid()
472 new_sid_prefix, rid, *uid, in kidmap_getuidbysid()
503 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getgidbysid() argument
519 if (kidmap_cache_lookup_gidbysid(&zs->cache, sid_prefix, rid, gid) in kidmap_getgidbysid()
526 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getgidbysid()
549 new_sid_prefix, rid, *gid, in kidmap_getgidbysid()
580 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getpidbysid() argument
596 if (kidmap_cache_lookup_pidbysid(&zs->cache, sid_prefix, rid, pid, in kidmap_getpidbysid()
603 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getpidbysid()
634 new_sid_prefix, rid, *pid, in kidmap_getpidbysid()
669 uint32_t *rid) in kidmap_getsidbyuid() argument
680 if (sid_prefix == NULL || rid == NULL) in kidmap_getsidbyuid()
685 if (kidmap_cache_lookup_sidbyuid(&zs->cache, sid_prefix, rid, uid) in kidmap_getsidbyuid()
706 *rid = 0; in kidmap_getsidbyuid()
716 *rid = id->idmap_id_u.sid.rid; in kidmap_getsidbyuid()
719 *sid_prefix, *rid, uid, in kidmap_getsidbyuid()
724 *rid = 0; in kidmap_getsidbyuid()
731 *rid = 0; in kidmap_getsidbyuid()
753 uint32_t *rid) in kidmap_getsidbygid() argument
763 if (sid_prefix == NULL || rid == NULL) in kidmap_getsidbygid()
768 if (kidmap_cache_lookup_sidbygid(&zs->cache, sid_prefix, rid, gid) in kidmap_getsidbygid()
789 *rid = 0; in kidmap_getsidbygid()
799 *rid = id->idmap_id_u.sid.rid; in kidmap_getsidbygid()
802 *sid_prefix, *rid, gid, in kidmap_getsidbygid()
807 *rid = 0; in kidmap_getsidbygid()
814 *rid = 0; in kidmap_getsidbygid()
900 uint32_t rid, uid_t *uid, idmap_stat *stat) in kidmap_batch_getuidbysid() argument
910 rid, uid) == IDMAP_SUCCESS) { in kidmap_batch_getuidbysid()
925 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getuidbysid()
934 result->rid = NULL; in kidmap_batch_getuidbysid()
961 uint32_t rid, uid_t *gid, idmap_stat *stat) in kidmap_batch_getgidbysid() argument
971 rid, gid) == IDMAP_SUCCESS) { in kidmap_batch_getgidbysid()
986 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getgidbysid()
995 result->rid = NULL; in kidmap_batch_getgidbysid()
1024 uint32_t rid, uid_t *pid, int *is_user, idmap_stat *stat) in kidmap_batch_getpidbysid() argument
1034 rid, pid, is_user) == IDMAP_SUCCESS) { in kidmap_batch_getpidbysid()
1049 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getpidbysid()
1058 result->rid = NULL; in kidmap_batch_getpidbysid()
1083 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbyuid() argument
1089 rid == NULL || stat == NULL) in kidmap_batch_getsidbyuid()
1093 sid_prefix, rid, uid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbyuid()
1113 result->rid = rid; in kidmap_batch_getsidbyuid()
1138 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbygid() argument
1144 rid == NULL || stat == NULL) in kidmap_batch_getsidbygid()
1148 sid_prefix, rid, gid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbygid()
1168 result->rid = rid; in kidmap_batch_getsidbygid()
1246 if (result->rid) in kidmap_get_mappings()
1247 *result->rid = 0; in kidmap_get_mappings()
1269 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1275 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1292 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1298 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1308 if (result->sid_prefix && result->rid) { in kidmap_get_mappings()
1310 *result->rid = id->idmap_id_u.sid.rid; in kidmap_get_mappings()
1322 id->idmap_id_u.sid.rid, in kidmap_get_mappings()
1329 id->idmap_id_u.sid.rid, in kidmap_get_mappings()
1346 if (result->rid) in kidmap_get_mappings()
1347 *result->rid = 0; in kidmap_get_mappings()
1372 if (result->rid) in kidmap_get_mappings()
1373 *result->rid = 0; in kidmap_get_mappings()