Lines Matching refs:current
157 int cil_resolve_classperms(struct cil_tree_node *current, struct cil_classperms *cp, void *extra_ar… in cil_resolve_classperms() argument
164 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
188 int cil_resolve_classperms_set(struct cil_tree_node *current, struct cil_classperms_set *cp_set, vo… in cil_resolve_classperms_set() argument
193 rc = cil_resolve_name(current, cp_set->set_str, CIL_SYM_CLASSPERMSETS, extra_args, &datum); in cil_resolve_classperms_set()
201 rc = cil_resolve_classperms_list(current, cp_set->set->classperms, extra_args); in cil_resolve_classperms_set()
213 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extr… in cil_resolve_classperms_list() argument
220 rc = cil_resolve_classperms(current, curr->data, extra_args); in cil_resolve_classperms_list()
225 rc = cil_resolve_classperms_set(current, curr->data, extra_args); in cil_resolve_classperms_list()
238 int cil_resolve_classpermissionset(struct cil_tree_node *current, struct cil_classpermissionset *cp… in cil_resolve_classpermissionset() argument
246 rc = cil_resolve_name(current, cps->set_str, CIL_SYM_CLASSPERMSETS, args, &datum); in cil_resolve_classpermissionset()
251 rc = cil_resolve_classperms_list(current, cps->classperms, extra_args); in cil_resolve_classpermissionset()
284 int cil_resolve_permissionx(struct cil_tree_node *current, struct cil_permissionx *permx, void *ext… in cil_resolve_permissionx() argument
289 rc = cil_resolve_name(current, permx->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_permissionx()
301 int cil_resolve_avrule(struct cil_tree_node *current, void *extra_args) in cil_resolve_avrule() argument
306 struct cil_avrule *rule = current->data; in cil_resolve_avrule()
317 rc = cil_resolve_name(current, rule->src_str, CIL_SYM_TYPES, args, &src_datum); in cil_resolve_avrule()
326 rc = cil_resolve_name(current, rule->tgt_str, CIL_SYM_TYPES, args, &tgt_datum); in cil_resolve_avrule()
338 rc = cil_resolve_classperms_list(current, rule->perms.classperms, extra_args); in cil_resolve_avrule()
344 rc = cil_resolve_name(current, rule->perms.x.permx_str, CIL_SYM_PERMX, args, &permx_datum); in cil_resolve_avrule()
350 rc = cil_resolve_permissionx(current, rule->perms.x.permx, extra_args); in cil_resolve_avrule()
363 int cil_resolve_type_rule(struct cil_tree_node *current, void *extra_args) in cil_resolve_type_rule() argument
365 struct cil_type_rule *rule = current->data; in cil_resolve_type_rule()
373 rc = cil_resolve_name(current, rule->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_type_rule()
379 rc = cil_resolve_name(current, rule->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_type_rule()
385 rc = cil_resolve_name(current, rule->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_type_rule()
391 rc = cil_resolve_name(current, rule->result_str, CIL_SYM_TYPES, extra_args, &result_datum); in cil_resolve_type_rule()
411 int cil_resolve_typeattributeset(struct cil_tree_node *current, void *extra_args) in cil_resolve_typeattributeset() argument
413 struct cil_typeattributeset *attrtypes = current->data; in cil_resolve_typeattributeset()
419 rc = cil_resolve_name(current, attrtypes->attr_str, CIL_SYM_TYPES, extra_args, &attr_datum); in cil_resolve_typeattributeset()
434 …rc = cil_resolve_expr(CIL_TYPEATTRIBUTESET, attrtypes->str_expr, &attrtypes->datum_expr, current, … in cil_resolve_typeattributeset()
456 int cil_resolve_aliasactual(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor… in cil_resolve_aliasactual() argument
460 struct cil_aliasactual *aliasactual = current->data; in cil_resolve_aliasactual()
470 rc = cil_resolve_name(current, aliasactual->alias_str, sym_index, extra_args, &alias_datum); in cil_resolve_aliasactual()
479 rc = cil_resolve_name(current, aliasactual->actual_str, sym_index, extra_args, &actual_datum); in cil_resolve_aliasactual()
500 int cil_resolve_alias_to_actual(struct cil_tree_node *current, enum cil_flavor flavor) in cil_resolve_alias_to_actual() argument
502 struct cil_alias *alias = current->data; in cil_resolve_alias_to_actual()
503 struct cil_alias *a1 = current->data; in cil_resolve_alias_to_actual()
504 struct cil_alias *a2 = current->data; in cil_resolve_alias_to_actual()
510 cil_tree_log(current, CIL_ERR, "Alias declared but not used"); in cil_resolve_alias_to_actual()
544 int cil_resolve_typepermissive(struct cil_tree_node *current, void *extra_args) in cil_resolve_typepermissive() argument
546 struct cil_typepermissive *typeperm = current->data; in cil_resolve_typepermissive()
551 rc = cil_resolve_name(current, typeperm->type_str, CIL_SYM_TYPES, extra_args, &type_datum); in cil_resolve_typepermissive()
572 int cil_resolve_nametypetransition(struct cil_tree_node *current, void *extra_args) in cil_resolve_nametypetransition() argument
575 struct cil_nametypetransition *nametypetrans = current->data; in cil_resolve_nametypetransition()
584 rc = cil_resolve_name(current, nametypetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_nametypetransition()
590 rc = cil_resolve_name(current, nametypetrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_nametypetransition()
596 rc = cil_resolve_name(current, nametypetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_nametypetransition()
602 nametypetrans->name = __cil_insert_name(args->db, nametypetrans->name_str, current); in cil_resolve_nametypetransition()
604 rc = cil_resolve_name(current, nametypetrans->name_str, CIL_SYM_NAMES, extra_args, &name_datum); in cil_resolve_nametypetransition()
611 …rc = cil_resolve_name(current, nametypetrans->result_str, CIL_SYM_TYPES, extra_args, &result_datum… in cil_resolve_nametypetransition()
631 int cil_resolve_rangetransition(struct cil_tree_node *current, void *extra_args) in cil_resolve_rangetransition() argument
633 struct cil_rangetransition *rangetrans = current->data; in cil_resolve_rangetransition()
640 rc = cil_resolve_name(current, rangetrans->src_str, CIL_SYM_TYPES, extra_args, &src_datum); in cil_resolve_rangetransition()
646 rc = cil_resolve_name(current, rangetrans->exec_str, CIL_SYM_TYPES, extra_args, &exec_datum); in cil_resolve_rangetransition()
652 rc = cil_resolve_name(current, rangetrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_rangetransition()
659 …rc = cil_resolve_name(current, rangetrans->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datu… in cil_resolve_rangetransition()
667 rc = cil_resolve_levelrange(current, rangetrans->range, extra_args); in cil_resolve_rangetransition()
673 rc = cil_resolve_levelrange(current, rangetrans->range, extra_args); in cil_resolve_rangetransition()
694 int cil_resolve_classcommon(struct cil_tree_node *current, void *extra_args) in cil_resolve_classcommon() argument
698 struct cil_classcommon *clscom = current->data; in cil_resolve_classcommon()
703 rc = cil_resolve_name(current, clscom->class_str, CIL_SYM_CLASSES, extra_args, &class_datum); in cil_resolve_classcommon()
708 rc = cil_resolve_name(current, clscom->common_str, CIL_SYM_COMMONS, extra_args, &common_datum); in cil_resolve_classcommon()
727 …cil_tree_log(current, CIL_ERR, "Too many permissions in class '%s' when including common permissio… in cil_resolve_classcommon()
737 int cil_resolve_classmapping(struct cil_tree_node *current, void *extra_args) in cil_resolve_classmapping() argument
740 struct cil_classmapping *mapping = current->data; in cil_resolve_classmapping()
746 rc = cil_resolve_name(current, mapping->map_class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classmapping()
759 rc = cil_resolve_classperms_list(current, mapping->classperms, extra_args); in cil_resolve_classmapping()
778 int cil_resolve_userrole(struct cil_tree_node *current, void *extra_args) in cil_resolve_userrole() argument
780 struct cil_userrole *userrole = current->data; in cil_resolve_userrole()
785 rc = cil_resolve_name(current, userrole->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrole()
791 rc = cil_resolve_name(current, userrole->role_str, CIL_SYM_ROLES, extra_args, &role_datum); in cil_resolve_userrole()
803 int cil_resolve_userlevel(struct cil_tree_node *current, void *extra_args) in cil_resolve_userlevel() argument
805 struct cil_userlevel *usrlvl = current->data; in cil_resolve_userlevel()
812 rc = cil_resolve_name(current, usrlvl->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userlevel()
828 rc = cil_resolve_name(current, usrlvl->level_str, CIL_SYM_LEVELS, extra_args, &lvl_datum); in cil_resolve_userlevel()
837 rc = cil_resolve_level(current, user->dftlevel, extra_args); in cil_resolve_userlevel()
843 rc = cil_resolve_level(current, usrlvl->level, extra_args); in cil_resolve_userlevel()
856 int cil_resolve_userrange(struct cil_tree_node *current, void *extra_args) in cil_resolve_userrange() argument
858 struct cil_userrange *userrange = current->data; in cil_resolve_userrange()
865 rc = cil_resolve_name(current, userrange->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrange()
881 …rc = cil_resolve_name(current, userrange->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datum… in cil_resolve_userrange()
890 rc = cil_resolve_levelrange(current, user->range, extra_args); in cil_resolve_userrange()
896 rc = cil_resolve_levelrange(current, userrange->range, extra_args); in cil_resolve_userrange()
909 int cil_resolve_userprefix(struct cil_tree_node *current, void *extra_args) in cil_resolve_userprefix() argument
911 struct cil_userprefix *userprefix = current->data; in cil_resolve_userprefix()
916 rc = cil_resolve_name(current, userprefix->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userprefix()
935 int cil_resolve_selinuxuser(struct cil_tree_node *current, void *extra_args) in cil_resolve_selinuxuser() argument
937 struct cil_selinuxuser *selinuxuser = current->data; in cil_resolve_selinuxuser()
943 rc = cil_resolve_name(current, selinuxuser->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_selinuxuser()
959 …rc = cil_resolve_name(current, selinuxuser->range_str, CIL_SYM_LEVELRANGES, extra_args, &lvlrange_… in cil_resolve_selinuxuser()
967 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser()
973 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser()
984 int cil_resolve_roletype(struct cil_tree_node *current, void *extra_args) in cil_resolve_roletype() argument
986 struct cil_roletype *roletype = current->data; in cil_resolve_roletype()
991 rc = cil_resolve_name(current, roletype->role_str, CIL_SYM_ROLES, extra_args, &role_datum); in cil_resolve_roletype()
997 rc = cil_resolve_name(current, roletype->type_str, CIL_SYM_TYPES, extra_args, &type_datum); in cil_resolve_roletype()
1009 int cil_resolve_roletransition(struct cil_tree_node *current, void *extra_args) in cil_resolve_roletransition() argument
1011 struct cil_roletransition *roletrans = current->data; in cil_resolve_roletransition()
1019 rc = cil_resolve_name(current, roletrans->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roletransition()
1025 rc = cil_resolve_name(current, roletrans->tgt_str, CIL_SYM_TYPES, extra_args, &tgt_datum); in cil_resolve_roletransition()
1031 rc = cil_resolve_name(current, roletrans->obj_str, CIL_SYM_CLASSES, extra_args, &obj_datum); in cil_resolve_roletransition()
1037 rc = cil_resolve_name(current, roletrans->result_str, CIL_SYM_ROLES, extra_args, &result_datum); in cil_resolve_roletransition()
1056 int cil_resolve_roleallow(struct cil_tree_node *current, void *extra_args) in cil_resolve_roleallow() argument
1058 struct cil_roleallow *roleallow = current->data; in cil_resolve_roleallow()
1063 rc = cil_resolve_name(current, roleallow->src_str, CIL_SYM_ROLES, extra_args, &src_datum); in cil_resolve_roleallow()
1069 rc = cil_resolve_name(current, roleallow->tgt_str, CIL_SYM_ROLES, extra_args, &tgt_datum); in cil_resolve_roleallow()
1081 int cil_resolve_roleattributeset(struct cil_tree_node *current, void *extra_args) in cil_resolve_roleattributeset() argument
1084 struct cil_roleattributeset *attrroles = current->data; in cil_resolve_roleattributeset()
1089 rc = cil_resolve_name(current, attrroles->attr_str, CIL_SYM_ROLES, extra_args, &attr_datum); in cil_resolve_roleattributeset()
1102 …rc = cil_resolve_expr(CIL_ROLEATTRIBUTESET, attrroles->str_expr, &attrroles->datum_expr, current, … in cil_resolve_roleattributeset()
1417 int cil_resolve_classorder(struct cil_tree_node *current, void *extra_args) in cil_resolve_classorder() argument
1422 struct cil_classorder *classorder = current->data; in cil_resolve_classorder()
1438 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classorder()
1448 class_list->node = current; in cil_resolve_classorder()
1462 int cil_resolve_sidorder(struct cil_tree_node *current, void *extra_args) in cil_resolve_sidorder() argument
1466 struct cil_sidorder *sidorder = current->data; in cil_resolve_sidorder()
1476 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SIDS, extra_args, &datum); in cil_resolve_sidorder()
1486 ordered->node = current; in cil_resolve_sidorder()
1509 int cil_resolve_catorder(struct cil_tree_node *current, void *extra_args) in cil_resolve_catorder() argument
1513 struct cil_catorder *catorder = current->data; in cil_resolve_catorder()
1525 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CATS, extra_args, &cat_datum); in cil_resolve_catorder()
1542 ordered->node = current; in cil_resolve_catorder()
1551 int cil_resolve_sensitivityorder(struct cil_tree_node *current, void *extra_args) in cil_resolve_sensitivityorder() argument
1555 struct cil_sensorder *sensorder = current->data; in cil_resolve_sensitivityorder()
1565 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SENS, extra_args, &datum); in cil_resolve_sensitivityorder()
1575 ordered->node = current; in cil_resolve_sensitivityorder()
1584 int cil_resolve_cats(struct cil_tree_node *current, struct cil_cats *cats, void *extra_args) in cil_resolve_cats() argument
1588 rc = cil_resolve_expr(CIL_CATSET, cats->str_expr, &cats->datum_expr, current, extra_args); in cil_resolve_cats()
1600 int cil_resolve_catset(struct cil_tree_node *current, struct cil_catset *catset, void *extra_args) in cil_resolve_catset() argument
1604 rc = cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
1619 int cil_resolve_senscat(struct cil_tree_node *current, void *extra_args) in cil_resolve_senscat() argument
1622 struct cil_senscat *senscat = current->data; in cil_resolve_senscat()
1626 rc = cil_resolve_name(current, (char*)senscat->sens_str, CIL_SYM_SENS, extra_args, &sens_datum); in cil_resolve_senscat()
1632 rc = cil_resolve_cats(current, senscat->cats, extra_args); in cil_resolve_senscat()
1651 int cil_resolve_level(struct cil_tree_node *current, struct cil_level *level, void *extra_args) in cil_resolve_level() argument
1656 rc = cil_resolve_name(current, (char*)level->sens_str, CIL_SYM_SENS, extra_args, &sens_datum); in cil_resolve_level()
1665 rc = cil_resolve_cats(current, level->cats, extra_args); in cil_resolve_level()
1677 int cil_resolve_levelrange(struct cil_tree_node *current, struct cil_levelrange *lvlrange, void *ex… in cil_resolve_levelrange() argument
1684 rc = cil_resolve_name(current, lvlrange->low_str, CIL_SYM_LEVELS, extra_args, &low_datum); in cil_resolve_levelrange()
1692 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1698 rc = cil_resolve_level(current, lvlrange->low, extra_args); in cil_resolve_levelrange()
1705 rc = cil_resolve_name(current, lvlrange->high_str, CIL_SYM_LEVELS, extra_args, &high_datum); in cil_resolve_levelrange()
1713 rc = cil_resolve_level(current, lvlrange->high, extra_args); in cil_resolve_levelrange()
1719 rc = cil_resolve_level(current, lvlrange->high, extra_args); in cil_resolve_levelrange()
1731 int cil_resolve_constrain(struct cil_tree_node *current, void *extra_args) in cil_resolve_constrain() argument
1733 struct cil_constrain *cons = current->data; in cil_resolve_constrain()
1736 rc = cil_resolve_classperms_list(current, cons->classperms, extra_args); in cil_resolve_constrain()
1741 rc = cil_resolve_expr(CIL_CONSTRAIN, cons->str_expr, &cons->datum_expr, current, extra_args); in cil_resolve_constrain()
1752 int cil_resolve_validatetrans(struct cil_tree_node *current, void *extra_args) in cil_resolve_validatetrans() argument
1754 struct cil_validatetrans *validtrans = current->data; in cil_resolve_validatetrans()
1759 rc = cil_resolve_name(current, validtrans->class_str, CIL_SYM_CLASSES, args, &class_datum); in cil_resolve_validatetrans()
1765 …rc = cil_resolve_expr(CIL_VALIDATETRANS, validtrans->str_expr, &validtrans->datum_expr, current, e… in cil_resolve_validatetrans()
1776 int cil_resolve_context(struct cil_tree_node *current, struct cil_context *context, void *extra_arg… in cil_resolve_context() argument
1786 rc = cil_resolve_name(current, context->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_context()
1801 rc = cil_resolve_name(current, context->role_str, CIL_SYM_ROLES, extra_args, &role_datum); in cil_resolve_context()
1815 rc = cil_resolve_name(current, context->type_str, CIL_SYM_TYPES, extra_args, &type_datum); in cil_resolve_context()
1830 …rc = cil_resolve_name(current, context->range_str, CIL_SYM_LEVELRANGES, extra_args, &lvlrange_datu… in cil_resolve_context()
1838 rc = cil_resolve_levelrange(current, context->range, extra_args); in cil_resolve_context()
1844 rc = cil_resolve_levelrange(current, context->range, extra_args); in cil_resolve_context()
1856 int cil_resolve_filecon(struct cil_tree_node *current, void *extra_args) in cil_resolve_filecon() argument
1858 struct cil_filecon *filecon = current->data; in cil_resolve_filecon()
1863 …rc = cil_resolve_name(current, filecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_filecon()
1869 rc = cil_resolve_context(current, filecon->context, extra_args); in cil_resolve_filecon()
1878 int cil_resolve_portcon(struct cil_tree_node *current, void *extra_args) in cil_resolve_portcon() argument
1880 struct cil_portcon *portcon = current->data; in cil_resolve_portcon()
1885 …rc = cil_resolve_name(current, portcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_portcon()
1891 rc = cil_resolve_context(current, portcon->context, extra_args); in cil_resolve_portcon()
1903 int cil_resolve_genfscon(struct cil_tree_node *current, void *extra_args) in cil_resolve_genfscon() argument
1905 struct cil_genfscon *genfscon = current->data; in cil_resolve_genfscon()
1910 …rc = cil_resolve_name(current, genfscon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum… in cil_resolve_genfscon()
1916 rc = cil_resolve_context(current, genfscon->context, extra_args); in cil_resolve_genfscon()
1928 int cil_resolve_nodecon(struct cil_tree_node *current, void *extra_args) in cil_resolve_nodecon() argument
1930 struct cil_nodecon *nodecon = current->data; in cil_resolve_nodecon()
1937 rc = cil_resolve_name(current, nodecon->addr_str, CIL_SYM_IPADDRS, extra_args, &addr_datum); in cil_resolve_nodecon()
1945 rc = cil_resolve_name(current, nodecon->mask_str, CIL_SYM_IPADDRS, extra_args, &mask_datum); in cil_resolve_nodecon()
1953 …rc = cil_resolve_name(current, nodecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_nodecon()
1959 rc = cil_resolve_context(current, nodecon->context, extra_args); in cil_resolve_nodecon()
1978 int cil_resolve_netifcon(struct cil_tree_node *current, void *extra_args) in cil_resolve_netifcon() argument
1980 struct cil_netifcon *netifcon = current->data; in cil_resolve_netifcon()
1987 …rc = cil_resolve_name(current, netifcon->if_context_str, CIL_SYM_CONTEXTS, extra_args, &ifcon_datu… in cil_resolve_netifcon()
1993 rc = cil_resolve_context(current, netifcon->if_context, extra_args); in cil_resolve_netifcon()
2000 …rc = cil_resolve_name(current, netifcon->packet_context_str, CIL_SYM_CONTEXTS, extra_args, &packco… in cil_resolve_netifcon()
2006 rc = cil_resolve_context(current, netifcon->packet_context, extra_args); in cil_resolve_netifcon()
2017 int cil_resolve_pirqcon(struct cil_tree_node *current, void *extra_args) in cil_resolve_pirqcon() argument
2019 struct cil_pirqcon *pirqcon = current->data; in cil_resolve_pirqcon()
2024 …rc = cil_resolve_name(current, pirqcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_pirqcon()
2030 rc = cil_resolve_context(current, pirqcon->context, extra_args); in cil_resolve_pirqcon()
2042 int cil_resolve_iomemcon(struct cil_tree_node *current, void *extra_args) in cil_resolve_iomemcon() argument
2044 struct cil_iomemcon *iomemcon = current->data; in cil_resolve_iomemcon()
2049 …rc = cil_resolve_name(current, iomemcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum… in cil_resolve_iomemcon()
2055 rc = cil_resolve_context(current, iomemcon->context, extra_args); in cil_resolve_iomemcon()
2067 int cil_resolve_ioportcon(struct cil_tree_node *current, void *extra_args) in cil_resolve_ioportcon() argument
2069 struct cil_ioportcon *ioportcon = current->data; in cil_resolve_ioportcon()
2074 …rc = cil_resolve_name(current, ioportcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datu… in cil_resolve_ioportcon()
2080 rc = cil_resolve_context(current, ioportcon->context, extra_args); in cil_resolve_ioportcon()
2092 int cil_resolve_pcidevicecon(struct cil_tree_node *current, void *extra_args) in cil_resolve_pcidevicecon() argument
2094 struct cil_pcidevicecon *pcidevicecon = current->data; in cil_resolve_pcidevicecon()
2099 …rc = cil_resolve_name(current, pcidevicecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_d… in cil_resolve_pcidevicecon()
2105 rc = cil_resolve_context(current, pcidevicecon->context, extra_args); in cil_resolve_pcidevicecon()
2117 int cil_resolve_devicetreecon(struct cil_tree_node *current, void *extra_args) in cil_resolve_devicetreecon() argument
2119 struct cil_devicetreecon *devicetreecon = current->data; in cil_resolve_devicetreecon()
2124 …rc = cil_resolve_name(current, devicetreecon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_… in cil_resolve_devicetreecon()
2130 rc = cil_resolve_context(current, devicetreecon->context, extra_args); in cil_resolve_devicetreecon()
2142 int cil_resolve_fsuse(struct cil_tree_node *current, void *extra_args) in cil_resolve_fsuse() argument
2144 struct cil_fsuse *fsuse = current->data; in cil_resolve_fsuse()
2149 rc = cil_resolve_name(current, fsuse->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_fsuse()
2155 rc = cil_resolve_context(current, fsuse->context, extra_args); in cil_resolve_fsuse()
2167 int cil_resolve_sidcontext(struct cil_tree_node *current, void *extra_args) in cil_resolve_sidcontext() argument
2169 struct cil_sidcontext *sidcon = current->data; in cil_resolve_sidcontext()
2176 rc = cil_resolve_name(current, sidcon->sid_str, CIL_SYM_SIDS, extra_args, &sid_datum); in cil_resolve_sidcontext()
2183 rc = cil_resolve_name(current, sidcon->context_str, CIL_SYM_CONTEXTS, extra_args, &context_datum); in cil_resolve_sidcontext()
2189 rc = cil_resolve_context(current, sidcon->context, extra_args); in cil_resolve_sidcontext()
2209 int cil_resolve_blockinherit_link(struct cil_tree_node *current, void *extra_args) in cil_resolve_blockinherit_link() argument
2211 struct cil_blockinherit *inherit = current->data; in cil_resolve_blockinherit_link()
2216 rc = cil_resolve_name(current, inherit->block_str, CIL_SYM_BLOCKS, extra_args, &block_datum); in cil_resolve_blockinherit_link()
2234 cil_list_append(inherit->block->bi_nodes, CIL_NODE, current); in cil_resolve_blockinherit_link()
2307 int cil_resolve_blockinherit_copy(struct cil_tree_node *current, void *extra_args) in cil_resolve_blockinherit_copy() argument
2309 struct cil_block *block = current->data; in cil_resolve_blockinherit_copy()
2324 if (current != block->datum.nodes->head->data) { in cil_resolve_blockinherit_copy()
2335 rc = cil_copy_ast(db, current, item->data); in cil_resolve_blockinherit_copy()
2348 int cil_resolve_blockabstract(struct cil_tree_node *current, void *extra_args) in cil_resolve_blockabstract() argument
2350 struct cil_blockabstract *abstract = current->data; in cil_resolve_blockabstract()
2355 rc = cil_resolve_name(current, abstract->block_str, CIL_SYM_BLOCKS, extra_args, &block_datum); in cil_resolve_blockabstract()
2374 int cil_resolve_in(struct cil_tree_node *current, void *extra_args) in cil_resolve_in() argument
2376 struct cil_in *in = current->data; in cil_resolve_in()
2387 rc = cil_resolve_name(current, in->block_str, CIL_SYM_BLOCKS, extra_args, &block_datum); in cil_resolve_in()
2394 rc = cil_copy_ast(db, current, block_node); in cil_resolve_in()
2400 cil_tree_children_destroy(current); in cil_resolve_in()
2401 current->cl_head = NULL; in cil_resolve_in()
2402 current->cl_tail = NULL; in cil_resolve_in()
2466 int cil_resolve_bounds(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor, enu… in cil_resolve_bounds() argument
2469 struct cil_bounds *bounds = current->data; in cil_resolve_bounds()
2479 rc = cil_resolve_name(current, bounds->parent_str, index, extra_args, &parent_datum); in cil_resolve_bounds()
2490 rc = cil_resolve_name(current, bounds->child_str, index, extra_args, &child_datum); in cil_resolve_bounds()
2544 cil_tree_log(current, CIL_ERR, "Bad bounds statement"); in cil_resolve_bounds()
2548 int cil_resolve_default(struct cil_tree_node *current, void *extra_args) in cil_resolve_default() argument
2551 struct cil_default *def = current->data; in cil_resolve_default()
2558 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_default()
2571 int cil_resolve_defaultrange(struct cil_tree_node *current, void *extra_args) in cil_resolve_defaultrange() argument
2574 struct cil_defaultrange *def = current->data; in cil_resolve_defaultrange()
2581 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_defaultrange()
2666 int cil_resolve_call1(struct cil_tree_node *current, void *extra_args) in cil_resolve_call1() argument
2668 struct cil_call *new_call = current->data; in cil_resolve_call1()
2679 rc = cil_resolve_name(current, new_call->macro_str, CIL_SYM_BLOCKS, extra_args, ¯o_datum); in cil_resolve_call1()
2700 cil_tree_log(current, CIL_ERR, "Missing arguments"); in cil_resolve_call1()
2713 cil_tree_log(current, CIL_ERR, "Missing arguments"); in cil_resolve_call1()
2727 name = __cil_insert_name(args->db, pc->data, current); in cil_resolve_call1()
2890 cil_tree_log(current, CIL_ERR, "Unexpected arguments"); in cil_resolve_call1()
2895 cil_tree_log(current, CIL_ERR, "Unexpected arguments"); in cil_resolve_call1()
2903 rc = cil_check_recursive_call(current, macro_node); in cil_resolve_call1()
2908 rc = cil_copy_ast(db, macro_node, current); in cil_resolve_call1()
2921 int cil_resolve_call2(struct cil_tree_node *current, void *extra_args) in cil_resolve_call2() argument
2923 struct cil_call *new_call = current->data; in cil_resolve_call2()
3016 rc = cil_resolve_name(current, arg->arg_str, sym_index, extra_args, &(arg->arg)); in cil_resolve_call2()
3128 int cil_resolve_boolif(struct cil_tree_node *current, void *extra_args) in cil_resolve_boolif() argument
3131 struct cil_booleanif *bif = (struct cil_booleanif*)current->data; in cil_resolve_boolif()
3133 rc = cil_resolve_expr(CIL_BOOLEANIF, bif->str_expr, &bif->datum_expr, current, extra_args); in cil_resolve_boolif()
3193 int cil_resolve_tunif(struct cil_tree_node *current, void *extra_args) in cil_resolve_tunif() argument
3198 struct cil_tunableif *tif = (struct cil_tunableif*)current->data; in cil_resolve_tunif()
3208 rc = cil_resolve_expr(CIL_TUNABLEIF, tif->str_expr, &tif->datum_expr, current, extra_args); in cil_resolve_tunif()
3215 if (current->cl_head != NULL && current->cl_head->flavor == CIL_CONDBLOCK) { in cil_resolve_tunif()
3216 cb = current->cl_head->data; in cil_resolve_tunif()
3218 true_node = current->cl_head; in cil_resolve_tunif()
3220 false_node = current->cl_head; in cil_resolve_tunif()
3224 …if (current->cl_head != NULL && current->cl_head->next != NULL && current->cl_head->next->flavor =… in cil_resolve_tunif()
3225 cb = current->cl_head->next->data; in cil_resolve_tunif()
3227 true_node = current->cl_head->next; in cil_resolve_tunif()
3229 false_node = current->cl_head->next; in cil_resolve_tunif()
3235 rc = cil_copy_ast(db, true_node, current->parent); in cil_resolve_tunif()
3242 rc = cil_copy_ast(db, false_node, current->parent); in cil_resolve_tunif()
3249 cil_tree_children_destroy(current); in cil_resolve_tunif()
3250 current->cl_head = NULL; in cil_resolve_tunif()
3251 current->cl_tail = NULL; in cil_resolve_tunif()
3259 int cil_resolve_userattributeset(struct cil_tree_node *current, void *extra_args) in cil_resolve_userattributeset() argument
3262 struct cil_userattributeset *attrusers = current->data; in cil_resolve_userattributeset()
3267 rc = cil_resolve_name(current, attrusers->attr_str, CIL_SYM_USERS, extra_args, &attr_datum); in cil_resolve_userattributeset()
3280 …rc = cil_resolve_expr(CIL_USERATTRIBUTESET, attrusers->str_expr, &attrusers->datum_expr, current, … in cil_resolve_userattributeset()
3674 int __cil_resolve_ast_first_child_helper(struct cil_tree_node *current, void *extra_args) in __cil_resolve_ast_first_child_helper() argument
3683 if (current == NULL || extra_args == NULL) { in __cil_resolve_ast_first_child_helper()
3688 parent = current->parent; in __cil_resolve_ast_first_child_helper()
3724 int __cil_resolve_ast_last_child_helper(struct cil_tree_node *current, void *extra_args) in __cil_resolve_ast_last_child_helper() argument
3731 if (current == NULL || extra_args == NULL) { in __cil_resolve_ast_last_child_helper()
3735 parent = current->parent; in __cil_resolve_ast_last_child_helper()
3782 int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current) in cil_resolve_ast() argument
3789 if (db == NULL || current == NULL) { in cil_resolve_ast()
3816 …rc = cil_tree_walk(current, __cil_resolve_ast_node_helper, __cil_resolve_ast_first_child_helper, _… in cil_resolve_ast()
3853 rc = __cil_verify_ordered(current, CIL_SID); in cil_resolve_ast()
3858 rc = __cil_verify_ordered(current, CIL_CLASS); in cil_resolve_ast()
3863 rc = __cil_verify_ordered(current, CIL_CAT); in cil_resolve_ast()
3868 rc = __cil_verify_ordered(current, CIL_SENS); in cil_resolve_ast()
3898 rc = cil_reset_ast(current); in cil_resolve_ast()
4031 char *current = strtok_r(name_dup, ".", &sp); in cil_resolve_name() local
4035 if (current == NULL) { in cil_resolve_name()
4047 rc = __cil_resolve_name_helper(db, node->parent, current, CIL_SYM_BLOCKS, datum); in cil_resolve_name()
4056 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name()
4079 current = next; in cil_resolve_name()
4083 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name()