Lines Matching refs:orig
100 struct cil_block *orig = data; in cil_copy_block() local
101 char *key = orig->datum.name; in cil_copy_block()
118 struct cil_blockabstract *orig = data; in cil_copy_blockabstract() local
123 new->block_str = orig->block_str; in cil_copy_blockabstract()
132 struct cil_blockinherit *orig = data; in cil_copy_blockinherit() local
137 new->block_str = orig->block_str; in cil_copy_blockinherit()
138 new->block = orig->block; in cil_copy_blockinherit()
147 struct cil_policycap *orig = data; in cil_copy_policycap() local
148 char *key = orig->datum.name; in cil_copy_policycap()
165 struct cil_perm *orig = data; in cil_copy_perm() local
166 char *key = orig->datum.name; in cil_copy_perm()
181 void cil_copy_classperms(struct cil_classperms *orig, struct cil_classperms **new) in cil_copy_classperms() argument
184 (*new)->class_str = orig->class_str; in cil_copy_classperms()
185 cil_copy_list(orig->perm_strs, &((*new)->perm_strs)); in cil_copy_classperms()
188 void cil_copy_classperms_set(struct cil_classperms_set *orig, struct cil_classperms_set **new) in cil_copy_classperms_set() argument
191 (*new)->set_str = orig->set_str; in cil_copy_classperms_set()
194 void cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new) in cil_copy_classperms_list() argument
198 if (orig == NULL) { in cil_copy_classperms_list()
203 cil_list_for_each(orig_item, orig) { in cil_copy_classperms_list()
218 struct cil_classmapping *orig = data; in cil_copy_classmapping() local
223 new->map_class_str = orig->map_class_str; in cil_copy_classmapping()
224 new->map_perm_str = orig->map_perm_str; in cil_copy_classmapping()
226 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classmapping()
235 struct cil_class *orig = data; in cil_copy_class() local
237 char *key = orig->datum.name; in cil_copy_class()
257 struct cil_classorder *orig = data; in cil_copy_classorder() local
261 if (orig->class_list_str != NULL) { in cil_copy_classorder()
262 cil_copy_list(orig->class_list_str, &new->class_list_str); in cil_copy_classorder()
272 struct cil_classpermission *orig = data; in cil_copy_classpermission() local
274 char *key = orig->datum.name; in cil_copy_classpermission()
287 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermission()
296 struct cil_classpermissionset *orig = data; in cil_copy_classpermissionset() local
301 new->set_str = orig->set_str; in cil_copy_classpermissionset()
303 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_classpermissionset()
312 struct cil_classcommon *orig = data; in cil_copy_classcommon() local
317 new->class_str = orig->class_str; in cil_copy_classcommon()
318 new->common_str = orig->common_str; in cil_copy_classcommon()
327 struct cil_sid *orig = data; in cil_copy_sid() local
328 char *key = orig->datum.name; in cil_copy_sid()
345 struct cil_sidcontext *orig = data; in cil_copy_sidcontext() local
350 if (orig->context_str != NULL) { in cil_copy_sidcontext()
351 new->context_str = orig->context_str; in cil_copy_sidcontext()
354 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_sidcontext()
364 struct cil_sidorder *orig = data; in cil_copy_sidorder() local
368 if (orig->sid_list_str != NULL) { in cil_copy_sidorder()
369 cil_copy_list(orig->sid_list_str, &new->sid_list_str); in cil_copy_sidorder()
379 struct cil_user *orig = data; in cil_copy_user() local
380 char *key = orig->datum.name; in cil_copy_user()
397 struct cil_userattribute *orig = data; in cil_copy_userattribute() local
399 char *key = orig->datum.name; in cil_copy_userattribute()
415 struct cil_userattributeset *orig = data; in cil_copy_userattributeset() local
420 new->attr_str = orig->attr_str; in cil_copy_userattributeset()
422 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_userattributeset()
423 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_userattributeset()
432 struct cil_userrole *orig = data; in cil_copy_userrole() local
437 new->user_str = orig->user_str; in cil_copy_userrole()
438 new->role_str = orig->role_str; in cil_copy_userrole()
447 struct cil_userlevel *orig = data; in cil_copy_userlevel() local
452 new->user_str = orig->user_str; in cil_copy_userlevel()
454 if (orig->level_str != NULL) { in cil_copy_userlevel()
455 new->level_str = orig->level_str; in cil_copy_userlevel()
457 cil_copy_fill_level(db, orig->level, &new->level); in cil_copy_userlevel()
467 struct cil_userrange *orig = data; in cil_copy_userrange() local
472 new->user_str = orig->user_str; in cil_copy_userrange()
474 if (orig->range_str != NULL) { in cil_copy_userrange()
475 new->range_str = orig->range_str; in cil_copy_userrange()
478 cil_copy_fill_levelrange(db, orig->range, new->range); in cil_copy_userrange()
488 struct cil_userprefix *orig = data; in cil_copy_userprefix() local
493 new->user_str = orig->user_str; in cil_copy_userprefix()
494 new->prefix_str = orig->prefix_str; in cil_copy_userprefix()
503 struct cil_role *orig = data; in cil_copy_role() local
504 char *key = orig->datum.name; in cil_copy_role()
521 struct cil_roletype *orig = data; in cil_copy_roletype() local
526 new->role_str = orig->role_str; in cil_copy_roletype()
527 new->type_str = orig->type_str; in cil_copy_roletype()
536 struct cil_roleattribute *orig = data; in cil_copy_roleattribute() local
537 char *key = orig->datum.name; in cil_copy_roleattribute()
554 struct cil_roleattributeset *orig = data; in cil_copy_roleattributeset() local
559 new->attr_str = orig->attr_str; in cil_copy_roleattributeset()
561 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_roleattributeset()
562 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_roleattributeset()
571 struct cil_roleallow *orig = data; in cil_copy_roleallow() local
576 new->src_str = orig->src_str; in cil_copy_roleallow()
577 new->tgt_str = orig->tgt_str; in cil_copy_roleallow()
586 struct cil_type *orig = data; in cil_copy_type() local
587 char *key = orig->datum.name; in cil_copy_type()
604 struct cil_typepermissive *orig = data; in cil_copy_typepermissive() local
609 new->type_str = orig->type_str; in cil_copy_typepermissive()
618 struct cil_typeattribute *orig = data; in cil_copy_typeattribute() local
619 char *key = orig->datum.name; in cil_copy_typeattribute()
636 struct cil_typeattributeset *orig = data; in cil_copy_typeattributeset() local
641 new->attr_str = orig->attr_str; in cil_copy_typeattributeset()
643 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_typeattributeset()
644 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_typeattributeset()
653 struct cil_expandtypeattribute *orig = data; in cil_copy_expandtypeattribute() local
659 if (orig->attr_strs != NULL) { in cil_copy_expandtypeattribute()
660 cil_copy_list(orig->attr_strs, &new->attr_strs); in cil_copy_expandtypeattribute()
663 if (orig->attr_datums != NULL) { in cil_copy_expandtypeattribute()
664 cil_copy_list(orig->attr_datums, &new->attr_datums); in cil_copy_expandtypeattribute()
667 new->expand = orig->expand; in cil_copy_expandtypeattribute()
676 struct cil_alias *orig = data; in cil_copy_alias() local
678 char *key = orig->datum.name; in cil_copy_alias()
696 struct cil_aliasactual *orig = data; in cil_copy_aliasactual() local
701 new->alias_str = orig->alias_str; in cil_copy_aliasactual()
702 new->actual_str = orig->actual_str; in cil_copy_aliasactual()
711 struct cil_roletransition *orig = data; in cil_copy_roletransition() local
716 new->src_str = orig->src_str; in cil_copy_roletransition()
717 new->tgt_str = orig->tgt_str; in cil_copy_roletransition()
718 new->obj_str = orig->obj_str; in cil_copy_roletransition()
719 new->result_str = orig->result_str; in cil_copy_roletransition()
728 struct cil_nametypetransition *orig = data; in cil_copy_nametypetransition() local
733 new->src_str = orig->src_str; in cil_copy_nametypetransition()
734 new->tgt_str = orig->tgt_str; in cil_copy_nametypetransition()
735 new->obj_str = orig->obj_str; in cil_copy_nametypetransition()
736 new->name_str = orig->name_str; in cil_copy_nametypetransition()
737 new->result_str = orig->result_str; in cil_copy_nametypetransition()
747 struct cil_rangetransition *orig = data; in cil_copy_rangetransition() local
752 new->src_str = orig->src_str; in cil_copy_rangetransition()
753 new->exec_str = orig->exec_str; in cil_copy_rangetransition()
754 new->obj_str = orig->obj_str; in cil_copy_rangetransition()
756 if (orig->range_str != NULL) { in cil_copy_rangetransition()
757 new->range_str = orig->range_str; in cil_copy_rangetransition()
760 cil_copy_fill_levelrange(db, orig->range, new->range); in cil_copy_rangetransition()
770 struct cil_bool *orig = data; in cil_copy_bool() local
772 char *key = orig->datum.name; in cil_copy_bool()
782 new->value = orig->value; in cil_copy_bool()
790 struct cil_tunable *orig = data; in cil_copy_tunable() local
792 char *key = orig->datum.name; in cil_copy_tunable()
802 new->value = orig->value; in cil_copy_tunable()
808 void cil_copy_fill_permissionx(struct cil_db *db, struct cil_permissionx *orig, struct cil_permissi… in cil_copy_fill_permissionx() argument
810 new->kind = orig->kind; in cil_copy_fill_permissionx()
811 new->obj_str = orig->obj_str; in cil_copy_fill_permissionx()
812 cil_copy_expr(db, orig->expr_str, &new->expr_str); in cil_copy_fill_permissionx()
817 struct cil_avrule *orig = data; in cil_copy_avrule() local
822 new->is_extended = orig->is_extended; in cil_copy_avrule()
823 new->rule_kind = orig->rule_kind; in cil_copy_avrule()
824 new->src_str = orig->src_str; in cil_copy_avrule()
825 new->tgt_str = orig->tgt_str; in cil_copy_avrule()
828 cil_copy_classperms_list(orig->perms.classperms, &new->perms.classperms); in cil_copy_avrule()
831 new->perms.x.permx_str = orig->perms.x.permx_str; in cil_copy_avrule()
834 cil_copy_fill_permissionx(db, orig->perms.x.permx, new->perms.x.permx); in cil_copy_avrule()
845 struct cil_permissionx *orig = data; in cil_copy_permissionx() local
847 char *key = orig->datum.name; in cil_copy_permissionx()
858 cil_copy_fill_permissionx(db, orig, new); in cil_copy_permissionx()
867 struct cil_type_rule *orig = data; in cil_copy_type_rule() local
872 new->rule_kind = orig->rule_kind; in cil_copy_type_rule()
873 new->src_str = orig->src_str; in cil_copy_type_rule()
874 new->tgt_str = orig->tgt_str; in cil_copy_type_rule()
875 new->obj_str = orig->obj_str; in cil_copy_type_rule()
876 new->result_str = orig->result_str; in cil_copy_type_rule()
885 struct cil_sens *orig = data; in cil_copy_sens() local
886 char *key = orig->datum.name; in cil_copy_sens()
903 struct cil_cat *orig = data; in cil_copy_cat() local
904 char *key = orig->datum.name; in cil_copy_cat()
919 void cil_copy_cats(struct cil_db *db, struct cil_cats *orig, struct cil_cats **new) in cil_copy_cats() argument
922 cil_copy_expr(db, orig->str_expr, &(*new)->str_expr); in cil_copy_cats()
923 cil_copy_expr(db, orig->datum_expr, &(*new)->datum_expr); in cil_copy_cats()
928 struct cil_catset *orig = data; in cil_copy_catset() local
930 char *key = orig->datum.name; in cil_copy_catset()
941 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_catset()
950 struct cil_senscat *orig = data; in cil_copy_senscat() local
955 new->sens_str = orig->sens_str; in cil_copy_senscat()
957 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_senscat()
966 struct cil_catorder *orig = data; in cil_copy_catorder() local
970 if (orig->cat_list_str != NULL) { in cil_copy_catorder()
971 cil_copy_list(orig->cat_list_str, &new->cat_list_str); in cil_copy_catorder()
981 struct cil_sensorder *orig = data; in cil_copy_sensitivityorder() local
985 if (orig->sens_list_str != NULL) { in cil_copy_sensitivityorder()
986 cil_copy_list(orig->sens_list_str, &new->sens_list_str); in cil_copy_sensitivityorder()
994 void cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new) in cil_copy_fill_level() argument
998 (*new)->sens_str = orig->sens_str; in cil_copy_fill_level()
1000 if (orig->cats != NULL) { in cil_copy_fill_level()
1001 cil_copy_cats(db, orig->cats, &(*new)->cats); in cil_copy_fill_level()
1007 struct cil_level *orig = data; in cil_copy_level() local
1009 char *key = orig->datum.name; in cil_copy_level()
1020 cil_copy_fill_level(db, orig, &new); in cil_copy_level()
1044 struct cil_levelrange *orig = data; in cil_copy_levelrange() local
1046 char *key = orig->datum.name; in cil_copy_levelrange()
1058 cil_copy_fill_levelrange(db, orig, new); in cil_copy_levelrange()
1081 struct cil_context *orig = data; in cil_copy_context() local
1083 char *key = orig->datum.name; in cil_copy_context()
1095 cil_copy_fill_context(db, orig, new); in cil_copy_context()
1104 struct cil_netifcon *orig = data; in cil_copy_netifcon() local
1109 new->interface_str = orig->interface_str; in cil_copy_netifcon()
1111 if (orig->if_context_str != NULL) { in cil_copy_netifcon()
1112 new->if_context_str = orig->if_context_str; in cil_copy_netifcon()
1115 cil_copy_fill_context(db, orig->if_context, new->if_context); in cil_copy_netifcon()
1118 if (orig->packet_context_str != NULL) { in cil_copy_netifcon()
1119 new->packet_context_str = orig->packet_context_str; in cil_copy_netifcon()
1122 cil_copy_fill_context(db, orig->packet_context, new->packet_context); in cil_copy_netifcon()
1132 struct cil_genfscon *orig = data; in cil_copy_genfscon() local
1137 new->fs_str = orig->fs_str; in cil_copy_genfscon()
1138 new->path_str = orig->path_str; in cil_copy_genfscon()
1140 if (orig->context_str != NULL) { in cil_copy_genfscon()
1141 new->context_str = orig->context_str; in cil_copy_genfscon()
1144 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_genfscon()
1154 struct cil_filecon *orig = data; in cil_copy_filecon() local
1159 new->path_str = orig->path_str; in cil_copy_filecon()
1160 new->type = orig->type; in cil_copy_filecon()
1162 if (orig->context_str != NULL) { in cil_copy_filecon()
1163 new->context_str = orig->context_str; in cil_copy_filecon()
1164 } else if (orig->context != NULL) { in cil_copy_filecon()
1166 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_filecon()
1176 struct cil_nodecon *orig = data; in cil_copy_nodecon() local
1181 if (orig->addr_str != NULL) { in cil_copy_nodecon()
1182 new->addr_str = orig->addr_str; in cil_copy_nodecon()
1185 cil_copy_fill_ipaddr(orig->addr, new->addr); in cil_copy_nodecon()
1188 if (orig->mask_str != NULL) { in cil_copy_nodecon()
1189 new->mask_str = orig->mask_str; in cil_copy_nodecon()
1192 cil_copy_fill_ipaddr(orig->mask, new->mask); in cil_copy_nodecon()
1195 if (orig->context_str != NULL) { in cil_copy_nodecon()
1196 new->context_str = orig->context_str; in cil_copy_nodecon()
1199 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_nodecon()
1209 struct cil_portcon *orig = data; in cil_copy_portcon() local
1214 new->proto = orig->proto; in cil_copy_portcon()
1215 new->port_low = orig->port_low; in cil_copy_portcon()
1216 new->port_high = orig->port_high; in cil_copy_portcon()
1218 if (orig->context_str != NULL) { in cil_copy_portcon()
1219 new->context_str = orig->context_str; in cil_copy_portcon()
1222 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_portcon()
1232 struct cil_pirqcon *orig = data; in cil_copy_pirqcon() local
1237 new->pirq = orig->pirq; in cil_copy_pirqcon()
1239 if (orig->context_str != NULL) { in cil_copy_pirqcon()
1240 new->context_str = orig->context_str; in cil_copy_pirqcon()
1243 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_pirqcon()
1253 struct cil_iomemcon *orig = data; in cil_copy_iomemcon() local
1258 new->iomem_low = orig->iomem_low; in cil_copy_iomemcon()
1259 new->iomem_high = orig->iomem_high; in cil_copy_iomemcon()
1261 if (orig->context_str != NULL) { in cil_copy_iomemcon()
1262 new->context_str = orig->context_str; in cil_copy_iomemcon()
1265 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_iomemcon()
1275 struct cil_ioportcon *orig = data; in cil_copy_ioportcon() local
1280 new->ioport_low = orig->ioport_low; in cil_copy_ioportcon()
1281 new->ioport_high = orig->ioport_high; in cil_copy_ioportcon()
1283 if (orig->context_str != NULL) { in cil_copy_ioportcon()
1284 new->context_str = orig->context_str; in cil_copy_ioportcon()
1287 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_ioportcon()
1297 struct cil_pcidevicecon *orig = data; in cil_copy_pcidevicecon() local
1302 new->dev = orig->dev; in cil_copy_pcidevicecon()
1304 if (orig->context_str != NULL) { in cil_copy_pcidevicecon()
1305 new->context_str = orig->context_str; in cil_copy_pcidevicecon()
1308 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_pcidevicecon()
1318 struct cil_devicetreecon *orig = data; in cil_copy_devicetreecon() local
1323 new->path = orig->path; in cil_copy_devicetreecon()
1325 if (orig->context_str != NULL) { in cil_copy_devicetreecon()
1326 new->context_str = orig->context_str; in cil_copy_devicetreecon()
1329 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_devicetreecon()
1339 struct cil_fsuse *orig = data; in cil_copy_fsuse() local
1344 new->type = orig->type; in cil_copy_fsuse()
1345 new->fs_str = orig->fs_str; in cil_copy_fsuse()
1347 if (orig->context_str != NULL) { in cil_copy_fsuse()
1348 new->context_str = orig->context_str; in cil_copy_fsuse()
1351 cil_copy_fill_context(db, orig->context, new->context); in cil_copy_fsuse()
1359 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new) in cil_copy_expr() argument
1363 if (orig == NULL) { in cil_copy_expr()
1368 cil_list_init(new, orig->flavor); in cil_copy_expr()
1370 cil_list_for_each(curr, orig) { in cil_copy_expr()
1402 struct cil_constrain *orig = data; in cil_copy_constrain() local
1406 cil_copy_classperms_list(orig->classperms, &new->classperms); in cil_copy_constrain()
1408 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_constrain()
1409 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_constrain()
1418 struct cil_validatetrans *orig = data; in cil_copy_validatetrans() local
1423 new->class_str = orig->class_str; in cil_copy_validatetrans()
1425 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_validatetrans()
1426 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_validatetrans()
1435 struct cil_call *orig = data; in cil_copy_call() local
1441 new->macro_str = orig->macro_str; in cil_copy_call()
1442 new->macro = orig->macro; in cil_copy_call()
1444 if (orig->args_tree != NULL) { in cil_copy_call()
1446 rc = cil_copy_ast(db, orig->args_tree->root, new->args_tree->root); in cil_copy_call()
1452 new->copied = orig->copied; in cil_copy_call()
1465 struct cil_macro *orig = data; in cil_copy_macro() local
1466 char *key = orig->datum.name; in cil_copy_macro()
1473 if (orig->params != NULL) { in cil_copy_macro()
1474 cil_copy_list(orig->params, &new->params); in cil_copy_macro()
1489 if (orig->params != NULL) { in cil_copy_macro()
1490 curr_orig = orig->params->head; in cil_copy_macro()
1530 struct cil_optional *orig = data; in cil_copy_optional() local
1531 char *key = orig->datum.name; in cil_copy_optional()
1554 struct cil_ipaddr *orig = data; in cil_copy_ipaddr() local
1556 char * key = orig->datum.name; in cil_copy_ipaddr()
1566 cil_copy_fill_ipaddr(orig, new); in cil_copy_ipaddr()
1575 struct cil_condblock *orig = data; in cil_copy_condblock() local
1578 new->flavor = orig->flavor; in cil_copy_condblock()
1586 struct cil_booleanif *orig = data; in cil_copy_boolif() local
1591 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_boolif()
1592 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_boolif()
1593 new->preserved_tunable = orig->preserved_tunable; in cil_copy_boolif()
1602 struct cil_tunableif *orig = data; in cil_copy_tunif() local
1607 cil_copy_expr(db, orig->str_expr, &new->str_expr); in cil_copy_tunif()
1608 cil_copy_expr(db, orig->datum_expr, &new->datum_expr); in cil_copy_tunif()
1617 struct cil_default *orig = data; in cil_copy_default() local
1622 new->flavor = orig->flavor; in cil_copy_default()
1624 if (orig->class_strs != NULL) { in cil_copy_default()
1625 cil_copy_list(orig->class_strs, &new->class_strs); in cil_copy_default()
1628 new->object = orig->object; in cil_copy_default()
1637 struct cil_defaultrange *orig = data; in cil_copy_defaultrange() local
1642 if (orig->class_strs != NULL) { in cil_copy_defaultrange()
1643 cil_copy_list(orig->class_strs, &new->class_strs); in cil_copy_defaultrange()
1646 new->object_range = orig->object_range; in cil_copy_defaultrange()
1655 struct cil_handleunknown *orig = data; in cil_copy_handleunknown() local
1659 new->handle_unknown = orig->handle_unknown; in cil_copy_handleunknown()
1667 struct cil_mls *orig = data; in cil_copy_mls() local
1671 new->value = orig->value; in cil_copy_mls()
1679 struct cil_bounds *orig = data; in cil_copy_bounds() local
1684 new->parent_str = orig->parent_str; in cil_copy_bounds()
1685 new->child_str = orig->child_str; in cil_copy_bounds()
1694 struct cil_src_info *orig = data; in cil_copy_src_info() local
1699 new->is_cil = orig->is_cil; in cil_copy_src_info()
1700 new->path = orig->path; in cil_copy_src_info()
1707 int __cil_copy_node_helper(struct cil_tree_node *orig, __attribute__((unused)) uint32_t *finished, … in __cil_copy_node_helper() argument
1722 if (orig == NULL || extra_args == NULL) { in __cil_copy_node_helper()
1731 switch (orig->flavor) { in __cil_copy_node_helper()
1993 if (orig->flavor >= CIL_MIN_DECLARATIVE) { in __cil_copy_node_helper()
1994 rc = cil_flavor_to_symtab_index(orig->flavor, &sym_index); in __cil_copy_node_helper()
2005 rc = (*copy_func)(db, orig->data, &data, symtab); in __cil_copy_node_helper()
2010 new->line = orig->line; in __cil_copy_node_helper()
2011 new->hll_line = orig->hll_line; in __cil_copy_node_helper()
2012 new->flavor = orig->flavor; in __cil_copy_node_helper()
2015 if (orig->flavor >= CIL_MIN_DECLARATIVE) { in __cil_copy_node_helper()
2017 if (DATUM(data)->nodes->head && FLAVOR(data) != orig->flavor) { in __cil_copy_node_helper()
2018 cil_tree_log(orig, CIL_ERR, "Incompatible flavor when trying to copy %s", DATUM(data)->name); in __cil_copy_node_helper()
2024 …rc = cil_symtab_insert(symtab, ((struct cil_symtab_datum*)orig->data)->name, ((struct cil_symtab_d… in __cil_copy_node_helper()
2040 …cil_tree_log(orig, CIL_ERR, "%s %s shadows a macro parameter", cil_node_to_string(new), ((struct c… in __cil_copy_node_helper()
2071 if (orig->cl_head != NULL) { in __cil_copy_node_helper()
2085 int __cil_copy_last_child_helper(__attribute__((unused)) struct cil_tree_node *orig, void *extra_ar… in __cil_copy_last_child_helper() argument
2102 int cil_copy_ast(struct cil_db *db, struct cil_tree_node *orig, struct cil_tree_node *dest) in cil_copy_ast() argument
2110 rc = cil_tree_walk(orig, __cil_copy_node_helper, NULL, __cil_copy_last_child_helper, &extra_args); in cil_copy_ast()