Lines Matching refs:rid
72 uint32_t *rid; member
425 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getuidbysid() argument
441 if (kidmap_cache_lookup_uidbysid(&zs->cache, sid_prefix, rid, uid) in kidmap_getuidbysid()
448 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getuidbysid()
471 new_sid_prefix, rid, *uid, in kidmap_getuidbysid()
502 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getgidbysid() argument
518 if (kidmap_cache_lookup_gidbysid(&zs->cache, sid_prefix, rid, gid) in kidmap_getgidbysid()
525 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getgidbysid()
548 new_sid_prefix, rid, *gid, in kidmap_getgidbysid()
579 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getpidbysid() argument
595 if (kidmap_cache_lookup_pidbysid(&zs->cache, sid_prefix, rid, pid, in kidmap_getpidbysid()
602 mapping.id1.idmap_id_u.sid.rid = rid; in kidmap_getpidbysid()
633 new_sid_prefix, rid, *pid, in kidmap_getpidbysid()
668 uint32_t *rid) in kidmap_getsidbyuid() argument
679 if (sid_prefix == NULL || rid == NULL) in kidmap_getsidbyuid()
684 if (kidmap_cache_lookup_sidbyuid(&zs->cache, sid_prefix, rid, uid) in kidmap_getsidbyuid()
705 *rid = 0; in kidmap_getsidbyuid()
715 *rid = id->idmap_id_u.sid.rid; in kidmap_getsidbyuid()
718 *sid_prefix, *rid, uid, in kidmap_getsidbyuid()
723 *rid = 0; in kidmap_getsidbyuid()
730 *rid = 0; in kidmap_getsidbyuid()
752 uint32_t *rid) in kidmap_getsidbygid() argument
762 if (sid_prefix == NULL || rid == NULL) in kidmap_getsidbygid()
767 if (kidmap_cache_lookup_sidbygid(&zs->cache, sid_prefix, rid, gid) in kidmap_getsidbygid()
788 *rid = 0; in kidmap_getsidbygid()
798 *rid = id->idmap_id_u.sid.rid; in kidmap_getsidbygid()
801 *sid_prefix, *rid, gid, in kidmap_getsidbygid()
806 *rid = 0; in kidmap_getsidbygid()
813 *rid = 0; in kidmap_getsidbygid()
899 uint32_t rid, uid_t *uid, idmap_stat *stat) in kidmap_batch_getuidbysid() argument
909 rid, uid) == IDMAP_SUCCESS) { in kidmap_batch_getuidbysid()
924 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getuidbysid()
933 result->rid = NULL; in kidmap_batch_getuidbysid()
960 uint32_t rid, uid_t *gid, idmap_stat *stat) in kidmap_batch_getgidbysid() argument
970 rid, gid) == IDMAP_SUCCESS) { in kidmap_batch_getgidbysid()
985 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getgidbysid()
994 result->rid = NULL; in kidmap_batch_getgidbysid()
1023 uint32_t rid, uid_t *pid, int *is_user, idmap_stat *stat) in kidmap_batch_getpidbysid() argument
1033 rid, pid, is_user) == IDMAP_SUCCESS) { in kidmap_batch_getpidbysid()
1048 mapping->id1.idmap_id_u.sid.rid = rid; in kidmap_batch_getpidbysid()
1057 result->rid = NULL; in kidmap_batch_getpidbysid()
1082 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbyuid() argument
1088 rid == NULL || stat == NULL) in kidmap_batch_getsidbyuid()
1092 sid_prefix, rid, uid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbyuid()
1112 result->rid = rid; in kidmap_batch_getsidbyuid()
1137 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbygid() argument
1143 rid == NULL || stat == NULL) in kidmap_batch_getsidbygid()
1147 sid_prefix, rid, gid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbygid()
1167 result->rid = rid; in kidmap_batch_getsidbygid()
1245 if (result->rid) in kidmap_get_mappings()
1246 *result->rid = 0; in kidmap_get_mappings()
1268 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1274 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1291 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1297 request->id1.idmap_id_u.sid.rid, in kidmap_get_mappings()
1307 if (result->sid_prefix && result->rid) { in kidmap_get_mappings()
1309 *result->rid = id->idmap_id_u.sid.rid; in kidmap_get_mappings()
1315 id->idmap_id_u.sid.rid, in kidmap_get_mappings()
1322 id->idmap_id_u.sid.rid, in kidmap_get_mappings()
1339 if (result->rid) in kidmap_get_mappings()
1340 *result->rid = 0; in kidmap_get_mappings()
1365 if (result->rid) in kidmap_get_mappings()
1366 *result->rid = 0; in kidmap_get_mappings()