Lines Matching refs:avtab_key
925 int __cil_cond_insert_rule(avtab_t *avtab, avtab_key_t *avtab_key, avtab_datum_t *avtab_datum, cond… in __cil_cond_insert_rule() argument
931 avtab_ptr = avtab_insert_nonunique(avtab, avtab_key, avtab_datum); in __cil_cond_insert_rule()
979 avtab_key_t avtab_key; in __cil_insert_type_rule() local
983 avtab_key.source_type = src; in __cil_insert_type_rule()
984 avtab_key.target_type = tgt; in __cil_insert_type_rule()
985 avtab_key.target_class = obj; in __cil_insert_type_rule()
989 avtab_key.specified = AVTAB_TRANSITION; in __cil_insert_type_rule()
992 avtab_key.specified = AVTAB_CHANGE; in __cil_insert_type_rule()
995 avtab_key.specified = AVTAB_MEMBER; in __cil_insert_type_rule()
1004 existing = avtab_search_node(&pdb->te_avtab, &avtab_key); in __cil_insert_type_rule()
1018 rc = avtab_insert(&pdb->te_avtab, &avtab_key, &avtab_datum); in __cil_insert_type_rule()
1020 existing = avtab_search_node(&pdb->te_cond_avtab, &avtab_key); in __cil_insert_type_rule()
1034 search_datum = cil_cond_av_list_search(&avtab_key, other_list); in __cil_insert_type_rule()
1042 search_datum = cil_cond_av_list_search(&avtab_key, this_list); in __cil_insert_type_rule()
1048 …rc = __cil_cond_insert_rule(&pdb->te_cond_avtab, &avtab_key, &avtab_datum, cond_node, cond_flavor); in __cil_insert_type_rule()
1274 avtab_key_t avtab_key; in __cil_insert_avrule() local
1278 avtab_key.source_type = src; in __cil_insert_avrule()
1279 avtab_key.target_type = tgt; in __cil_insert_avrule()
1280 avtab_key.target_class = obj; in __cil_insert_avrule()
1284 avtab_key.specified = AVTAB_ALLOWED; in __cil_insert_avrule()
1287 avtab_key.specified = AVTAB_AUDITALLOW; in __cil_insert_avrule()
1290 avtab_key.specified = AVTAB_AUDITDENY; in __cil_insert_avrule()
1299 avtab_dup = avtab_search(&pdb->te_avtab, &avtab_key); in __cil_insert_avrule()
1302 rc = avtab_insert(&pdb->te_avtab, &avtab_key, &avtab_datum); in __cil_insert_avrule()
1311 …rc = __cil_cond_insert_rule(&pdb->te_cond_avtab, &avtab_key, &avtab_datum, cond_node, cond_flavor); in __cil_insert_avrule()
1556 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_policydb() local
1563 avtab_key = (avtab_key_t *)k; in __cil_avrulex_ioctl_to_policydb()
1566 sepol_obj = pdb->class_val_to_struct[avtab_key->target_class - 1]; in __cil_avrulex_ioctl_to_policydb()
1584 rc = avtab_insert(&pdb->te_avtab, avtab_key, &avtab_datum); in __cil_avrulex_ioctl_to_policydb()
1603 free(avtab_key); in __cil_avrulex_ioctl_to_policydb()
1613 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_hashtable() local
1632 avtab_key = cil_malloc(sizeof(*avtab_key)); in __cil_avrulex_ioctl_to_hashtable()
1633 avtab_key->source_type = src; in __cil_avrulex_ioctl_to_hashtable()
1634 avtab_key->target_type = tgt; in __cil_avrulex_ioctl_to_hashtable()
1635 avtab_key->target_class = obj; in __cil_avrulex_ioctl_to_hashtable()
1636 avtab_key->specified = specified; in __cil_avrulex_ioctl_to_hashtable()
1638 hashtab_xperms = (ebitmap_t *)hashtab_search(h, (hashtab_key_t)avtab_key); in __cil_avrulex_ioctl_to_hashtable()
1643 free(avtab_key); in __cil_avrulex_ioctl_to_hashtable()
1646 rc = hashtab_insert(h, (hashtab_key_t)avtab_key, hashtab_xperms); in __cil_avrulex_ioctl_to_hashtable()
1648 free(avtab_key); in __cil_avrulex_ioctl_to_hashtable()
1652 free(avtab_key); in __cil_avrulex_ioctl_to_hashtable()