Lines Matching refs:sid_prefix

73 	const char	**sid_prefix;  member
426 kidmap_getuidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getuidbysid() argument
437 if (sid_prefix == NULL || uid == NULL) in kidmap_getuidbysid()
442 if (kidmap_cache_lookup_uidbysid(&zs->cache, sid_prefix, rid, uid) in kidmap_getuidbysid()
448 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_getuidbysid()
470 sid_prefix); in kidmap_getuidbysid()
503 kidmap_getgidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getgidbysid() argument
514 if (sid_prefix == NULL || gid == NULL) in kidmap_getgidbysid()
519 if (kidmap_cache_lookup_gidbysid(&zs->cache, sid_prefix, rid, gid) in kidmap_getgidbysid()
525 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_getgidbysid()
547 sid_prefix); in kidmap_getgidbysid()
580 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, in kidmap_getpidbysid() argument
591 if (sid_prefix == NULL || pid == NULL || is_user == NULL) in kidmap_getpidbysid()
596 if (kidmap_cache_lookup_pidbysid(&zs->cache, sid_prefix, rid, pid, in kidmap_getpidbysid()
602 mapping.id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_getpidbysid()
632 sid_prefix); in kidmap_getpidbysid()
668 kidmap_getsidbyuid(zone_t *zone, uid_t uid, const char **sid_prefix, 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()
707 *sid_prefix = NULL; in kidmap_getsidbyuid()
714 *sid_prefix = kidmap_find_sid_prefix( in kidmap_getsidbyuid()
719 *sid_prefix, *rid, uid, in kidmap_getsidbyuid()
725 *sid_prefix = NULL; in kidmap_getsidbyuid()
732 *sid_prefix = NULL; in kidmap_getsidbyuid()
752 kidmap_getsidbygid(zone_t *zone, gid_t gid, const char **sid_prefix, 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()
790 *sid_prefix = NULL; in kidmap_getsidbygid()
797 *sid_prefix = kidmap_find_sid_prefix( in kidmap_getsidbygid()
802 *sid_prefix, *rid, gid, in kidmap_getsidbygid()
808 *sid_prefix = NULL; in kidmap_getsidbygid()
815 *sid_prefix = NULL; in kidmap_getsidbygid()
899 kidmap_batch_getuidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix, in kidmap_batch_getuidbysid() argument
905 if (get_handle == NULL || sid_prefix == NULL || in kidmap_batch_getuidbysid()
909 if (kidmap_cache_lookup_uidbysid(&get_handle->zs->cache, sid_prefix, in kidmap_batch_getuidbysid()
916 sid_prefix = kidmap_find_sid_prefix(sid_prefix); in kidmap_batch_getuidbysid()
924 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_batch_getuidbysid()
933 result->sid_prefix = NULL; in kidmap_batch_getuidbysid()
960 kidmap_batch_getgidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix, in kidmap_batch_getgidbysid() argument
966 if (get_handle == NULL || sid_prefix == NULL || in kidmap_batch_getgidbysid()
970 if (kidmap_cache_lookup_gidbysid(&get_handle->zs->cache, sid_prefix, in kidmap_batch_getgidbysid()
977 sid_prefix = kidmap_find_sid_prefix(sid_prefix); in kidmap_batch_getgidbysid()
985 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_batch_getgidbysid()
994 result->sid_prefix = NULL; in kidmap_batch_getgidbysid()
1023 kidmap_batch_getpidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix, in kidmap_batch_getpidbysid() argument
1029 if (get_handle == NULL || sid_prefix == NULL || pid == NULL || in kidmap_batch_getpidbysid()
1033 if (kidmap_cache_lookup_pidbysid(&get_handle->zs->cache, sid_prefix, in kidmap_batch_getpidbysid()
1040 sid_prefix = kidmap_find_sid_prefix(sid_prefix); in kidmap_batch_getpidbysid()
1048 mapping->id1.idmap_id_u.sid.prefix = (char *)sid_prefix; in kidmap_batch_getpidbysid()
1057 result->sid_prefix = NULL; in kidmap_batch_getpidbysid()
1083 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbyuid() argument
1088 if (get_handle == NULL || sid_prefix == NULL || in kidmap_batch_getsidbyuid()
1093 sid_prefix, rid, uid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbyuid()
1112 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbyuid()
1138 const char **sid_prefix, uint32_t *rid, idmap_stat *stat) in kidmap_batch_getsidbygid() argument
1143 if (get_handle == NULL || sid_prefix == NULL || in kidmap_batch_getsidbygid()
1148 sid_prefix, rid, gid) == IDMAP_SUCCESS) { in kidmap_batch_getsidbygid()
1167 result->sid_prefix = sid_prefix; in kidmap_batch_getsidbygid()
1198 const char *sid_prefix; in kidmap_get_mappings() local
1244 if (result->sid_prefix) in kidmap_get_mappings()
1245 *result->sid_prefix = NULL; in kidmap_get_mappings()
1264 sid_prefix = kidmap_find_sid_prefix( in kidmap_get_mappings()
1268 cache, sid_prefix, in kidmap_get_mappings()
1274 cache, sid_prefix, in kidmap_get_mappings()
1287 sid_prefix = kidmap_find_sid_prefix( in kidmap_get_mappings()
1291 cache, sid_prefix, in kidmap_get_mappings()
1297 cache, sid_prefix, in kidmap_get_mappings()
1306 sid_prefix = kidmap_find_sid_prefix( in kidmap_get_mappings()
1308 if (result->sid_prefix && result->rid) { in kidmap_get_mappings()
1309 *result->sid_prefix = sid_prefix; in kidmap_get_mappings()
1313 sid_prefix != NULL) { in kidmap_get_mappings()
1321 cache, sid_prefix, in kidmap_get_mappings()
1328 cache, sid_prefix, in kidmap_get_mappings()
1344 if (result->sid_prefix) in kidmap_get_mappings()
1345 *result->sid_prefix = NULL; in kidmap_get_mappings()
1370 if (result->sid_prefix) in kidmap_get_mappings()
1371 *result->sid_prefix = NULL; in kidmap_get_mappings()