Lines Matching refs:nodes
34 struct cond_expr_node *node = &expr->nodes[i]; in cond_evaluate_expr()
105 avnode = node->true_list.nodes[i]; in evaluate_cond_node()
113 avnode = node->false_list.nodes[i]; in evaluate_cond_node()
142 kfree(node->expr.nodes); in cond_node_destroy()
144 kfree(node->true_list.nodes); in cond_node_destroy()
145 kfree(node->false_list.nodes); in cond_node_destroy()
294 if (other->nodes[i] == node_ptr) { in cond_insertf()
339 list->nodes = kcalloc(len, sizeof(*list->nodes), GFP_KERNEL); in cond_read_av_list()
340 if (!list->nodes) in cond_read_av_list()
346 data.dst = &list->nodes[i]; in cond_read_av_list()
350 kfree(list->nodes); in cond_read_av_list()
351 list->nodes = NULL; in cond_read_av_list()
388 node->expr.nodes = kcalloc(len, sizeof(*node->expr.nodes), GFP_KERNEL); in cond_read_node()
389 if (!node->expr.nodes) in cond_read_node()
395 struct cond_expr_node *expr = &node->expr.nodes[i]; in cond_read_node()
493 rc = avtab_write_item(p, list->nodes[i], fp); in cond_write_av_list()
519 buf[0] = cpu_to_le32(node->expr.nodes[i].expr_type); in cond_write_node()
520 buf[1] = cpu_to_le32(node->expr.nodes[i].bool); in cond_write_node()
613 new->nodes = kcalloc(orig->len, sizeof(*new->nodes), GFP_KERNEL); in cond_dup_av_list()
614 if (!new->nodes) in cond_dup_av_list()
618 new->nodes[i] = avtab_insert_nonunique(avtab, in cond_dup_av_list()
619 &orig->nodes[i]->key, in cond_dup_av_list()
620 &orig->nodes[i]->datum); in cond_dup_av_list()
621 if (!new->nodes[i]) in cond_dup_av_list()
653 newn->expr.nodes = kmemdup(orign->expr.nodes, in duplicate_policydb_cond_list()
654 orign->expr.len * sizeof(*orign->expr.nodes), in duplicate_policydb_cond_list()
656 if (!newn->expr.nodes) in duplicate_policydb_cond_list()