Lines Matching full:nodes
33 struct cond_expr_node *node = &expr->nodes[i]; in cond_evaluate_expr()
104 avnode = node->true_list.nodes[i]; in evaluate_cond_node()
112 avnode = node->false_list.nodes[i]; in evaluate_cond_node()
141 kfree(node->expr.nodes); in cond_node_destroy()
142 /* the avtab_ptr_t nodes are destroyed by the avtab */ in cond_node_destroy()
143 kfree(node->true_list.nodes); in cond_node_destroy()
144 kfree(node->false_list.nodes); in cond_node_destroy()
298 if (other->nodes[i] == node_ptr) { in cond_insertf()
343 list->nodes = kcalloc(len, sizeof(*list->nodes), GFP_KERNEL); in cond_read_av_list()
344 if (!list->nodes) in cond_read_av_list()
350 data.dst = &list->nodes[i]; in cond_read_av_list()
354 kfree(list->nodes); in cond_read_av_list()
355 list->nodes = NULL; in cond_read_av_list()
392 node->expr.nodes = kcalloc(len, sizeof(*node->expr.nodes), GFP_KERNEL); in cond_read_node()
393 if (!node->expr.nodes) in cond_read_node()
399 struct cond_expr_node *expr = &node->expr.nodes[i]; in cond_read_node()
475 * cond_write_cond_av_list doesn't write out the av_list nodes.
496 rc = avtab_write_item(p, list->nodes[i], fp); in cond_write_av_list()
522 buf[0] = cpu_to_le32(node->expr.nodes[i].expr_type); in cond_write_node()
523 buf[1] = cpu_to_le32(node->expr.nodes[i].boolean); in cond_write_node()
614 new->nodes = kcalloc(orig->len, sizeof(*new->nodes), GFP_KERNEL); in cond_dup_av_list()
615 if (!new->nodes) in cond_dup_av_list()
619 new->nodes[i] = avtab_insert_nonunique( in cond_dup_av_list()
620 avtab, &orig->nodes[i]->key, &orig->nodes[i]->datum); in cond_dup_av_list()
621 if (!new->nodes[i]) in cond_dup_av_list()
652 newn->expr.nodes = in duplicate_policydb_cond_list()
653 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()