Lines Matching refs:flavor
87 if (parent->flavor == CIL_CALL) { in __cil_insert_name()
90 } else if (parent->flavor == CIL_MACRO) { in __cil_insert_name()
114 cil_list_init(perm_datums, perm_strs->flavor); in __cil_resolve_perms()
117 if (curr->flavor == CIL_LIST) { in __cil_resolve_perms()
125 } else if (curr->flavor == CIL_STRING) { in __cil_resolve_perms()
139 cil_list_append(*perm_datums, curr->flavor, curr->data); in __cil_resolve_perms()
211 if (curr->flavor == CIL_CLASSPERMS) { in cil_resolve_classperms_list()
255 cil_list_append(cp->classperms, curr->flavor, curr->data); in cil_resolve_classpermissionset()
393 if (result_node->flavor != CIL_TYPE) { in cil_resolve_type_rule()
394 cil_log(CIL_ERR, "Type rule result must be a type [%d]\n",result_node->flavor); in cil_resolve_type_rule()
421 if (attr_node->flavor != CIL_TYPEATTRIBUTE) { in cil_resolve_typeattributeset()
451 int cil_resolve_aliasactual(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor) in cil_resolve_aliasactual() argument
460 rc = cil_flavor_to_symtab_index(flavor, &sym_index); in cil_resolve_aliasactual()
490 int cil_resolve_alias_to_actual(struct cil_tree_node *current, enum cil_flavor flavor) in cil_resolve_alias_to_actual() argument
506 while (flavor != a1_node->flavor) { in cil_resolve_alias_to_actual()
548 if (type_node->flavor != CIL_TYPE && type_node->flavor != CIL_TYPEALIAS) { in cil_resolve_typepermissive()
610 if (result_node->flavor != CIL_TYPE && result_node->flavor != CIL_TYPEALIAS) { in cil_resolve_nametypetransition()
759 cil_list_append(mp->classperms, curr->flavor, curr->data); in cil_resolve_classmapping()
809 if (user_node->flavor != CIL_USER) { in cil_resolve_userlevel()
862 if (user_node->flavor != CIL_USER) { in cil_resolve_userrange()
913 if (user_node->flavor != CIL_USER) { in cil_resolve_userprefix()
940 if (user_node->flavor != CIL_USER) { in cil_resolve_selinuxuser()
1034 if (node->flavor != CIL_ROLE) { in cil_resolve_roletransition()
1036 printf("%i\n", node->flavor); in cil_resolve_roletransition()
1087 if (attr_node->flavor != CIL_ROLEATTRIBUTE) { in cil_resolve_roleattributeset()
1167 if (item->flavor == CIL_SID) { in __cil_ordered_item_insert()
1174 } else if (item->flavor == CIL_CLASS) { in __cil_ordered_item_insert()
1181 } else if (item->flavor == CIL_CAT) { in __cil_ordered_item_insert()
1188 } else if (item->flavor == CIL_SENS) { in __cil_ordered_item_insert()
1197 return cil_list_insert(old, curr, item->flavor, item->data); in __cil_ordered_item_insert()
1333 if (item->flavor == CIL_CLASS) { in insert_unordered()
1522 if (node->flavor != CIL_CAT) { in cil_resolve_catorder()
1784 if (node->flavor != CIL_USER) { in cil_resolve_context()
1798 if (node->flavor != CIL_ROLE) { in cil_resolve_context()
1813 if (node->flavor != CIL_TYPE && node->flavor != CIL_TYPEALIAS) { in cil_resolve_context()
2214 if (node->flavor != CIL_BLOCK) { in cil_resolve_blockinherit_link()
2242 if (curr->flavor == CIL_BLOCK) { in cil_print_recursive_blockinherit()
2257 if (curr->flavor == CIL_BLOCK) { in cil_print_recursive_blockinherit()
2277 if (curr->flavor != CIL_BLOCK) { in cil_check_recursive_blockinherit()
2354 if (block_node->flavor != CIL_BLOCK) { in cil_resolve_blockabstract()
2421 if (curr->flavor != CIL_NODE) { in cil_resolve_in_list()
2440 curr->flavor = CIL_NONE; in cil_resolve_in_list()
2459 int cil_resolve_bounds(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor) in cil_resolve_bounds() argument
2467 rc = cil_flavor_to_symtab_index(flavor, &index); in cil_resolve_bounds()
2482 switch (flavor) { in cil_resolve_bounds()
2522 if (node->flavor == CIL_TYPEATTRIBUTE) { in cil_resolve_bounds()
2529 if (node->flavor == CIL_TYPEATTRIBUTE) { in cil_resolve_bounds()
2556 cil_list_init(&def->class_datums, def->flavor); in cil_resolve_default()
2604 if (curr->flavor == CIL_CALL) { in cil_print_recursive_call()
2612 if (terminating_node->flavor == CIL_MACRO) { in cil_print_recursive_call()
2622 if (curr->flavor == CIL_MACRO) { in cil_print_recursive_call()
2639 if (curr->flavor == CIL_CALL) { in cil_check_recursive_call()
2648 } else if (curr->flavor == CIL_MACRO) { in cil_check_recursive_call()
2689 if (macro_node->flavor != CIL_MACRO) { in cil_resolve_call1()
2713 enum cil_flavor flavor = ((struct cil_param*)item->data)->flavor; in cil_resolve_call1() local
2720 if (item->flavor != CIL_PARAM) { in cil_resolve_call1()
2727 switch (flavor) { in cil_resolve_call1()
2767 cat_node->flavor = CIL_CATSET; in cil_resolve_call1()
2791 lvl_node->flavor = CIL_LEVEL; in cil_resolve_call1()
2815 range_node->flavor = CIL_LEVELRANGE; in cil_resolve_call1()
2839 addr_node->flavor = CIL_IPADDR; in cil_resolve_call1()
2869 cp_node->flavor = CIL_CLASSPERMISSION; in cil_resolve_call1()
2880 (((struct cil_param*)item->data)->flavor)); in cil_resolve_call1()
2885 new_arg->flavor = flavor; in cil_resolve_call1()
2944 switch (arg->flavor) { in cil_resolve_call2()
3048 rc = cil_flavor_to_symtab_index(arg->flavor, ¶m_index); in cil_resolve_name_call_args()
3071 switch (str_expr->flavor) { in cil_resolve_expr()
3094 cil_list_init(datum_expr, str_expr->flavor); in cil_resolve_expr()
3097 switch (curr->flavor) { in cil_resolve_expr()
3121 cil_list_append(*datum_expr, curr->flavor, curr->data); in cil_resolve_expr()
3153 } else if (curr->flavor == CIL_DATUM) { in __cil_evaluate_tunable_expr_helper()
3156 } else if (curr->flavor == CIL_LIST) { in __cil_evaluate_tunable_expr_helper()
3170 } else if (curr->flavor == CIL_OP) { in __cil_evaluate_tunable_expr()
3218 if (current->cl_head != NULL && current->cl_head->flavor == CIL_CONDBLOCK) { in cil_resolve_tunif()
3220 if (cb->flavor == CIL_CONDTRUE) { in cil_resolve_tunif()
3222 } else if (cb->flavor == CIL_CONDFALSE) { in cil_resolve_tunif()
3227 …if (current->cl_head != NULL && current->cl_head->next != NULL && current->cl_head->next->flavor =… in cil_resolve_tunif()
3229 if (cb->flavor == CIL_CONDTRUE) { in cil_resolve_tunif()
3231 } else if (cb->flavor == CIL_CONDFALSE) { in cil_resolve_tunif()
3276 if (attr_node->flavor != CIL_USERATTRIBUTE) { in cil_resolve_userattributeset()
3319 if (node->flavor == CIL_TUNABLEIF) { in __cil_resolve_ast_node()
3324 if (node->flavor == CIL_IN) { in __cil_resolve_ast_node()
3331 if (node->flavor == CIL_BLOCKINHERIT) { in __cil_resolve_ast_node()
3336 if (node->flavor == CIL_BLOCK) { in __cil_resolve_ast_node()
3341 if (node->flavor == CIL_BLOCKABSTRACT) { in __cil_resolve_ast_node()
3346 if (node->flavor == CIL_CALL && args->macro != NULL) { in __cil_resolve_ast_node()
3351 if (node->flavor == CIL_CALL) { in __cil_resolve_ast_node()
3356 if (node->flavor == CIL_CALL) { in __cil_resolve_ast_node()
3361 switch (node->flavor) { in __cil_resolve_ast_node()
3376 switch (node->flavor) { in __cil_resolve_ast_node()
3391 switch (node->flavor) { in __cil_resolve_ast_node()
3412 switch (node->flavor) { in __cil_resolve_ast_node()
3421 switch (node->flavor) { in __cil_resolve_ast_node()
3433 switch (node->flavor) { in __cil_resolve_ast_node()
3594 if (node->flavor == CIL_TUNABLE || node->flavor == CIL_MACRO) { in __cil_resolve_ast_node_helper()
3603 if (node->flavor == CIL_CAT || node->flavor == CIL_SENS) { in __cil_resolve_ast_node_helper()
3611 if (node->flavor == CIL_BLOCKINHERIT || in __cil_resolve_ast_node_helper()
3612 node->flavor == CIL_BLOCK || in __cil_resolve_ast_node_helper()
3613 node->flavor == CIL_BLOCKABSTRACT || in __cil_resolve_ast_node_helper()
3614 node->flavor == CIL_MACRO) { in __cil_resolve_ast_node_helper()
3622 if (!(node->flavor == CIL_CONDBLOCK || in __cil_resolve_ast_node_helper()
3623 node->flavor == CIL_AVRULE || in __cil_resolve_ast_node_helper()
3624 node->flavor == CIL_TYPE_RULE || in __cil_resolve_ast_node_helper()
3625 node->flavor == CIL_CALL || in __cil_resolve_ast_node_helper()
3626 node->flavor == CIL_TUNABLEIF || in __cil_resolve_ast_node_helper()
3627 node->flavor == CIL_NAMETYPETRANSITION)) { in __cil_resolve_ast_node_helper()
3638 if (node->flavor == CIL_MACRO) { in __cil_resolve_ast_node_helper()
3646 …if (node->flavor == CIL_BLOCK && ((((struct cil_block*)node->data)->is_abstract == CIL_TRUE) && (p… in __cil_resolve_ast_node_helper()
3695 if (parent->flavor == CIL_OPTIONAL || parent->flavor == CIL_BLOCK) { in __cil_resolve_ast_first_child_helper()
3700 new->flavor = parent->flavor; in __cil_resolve_ast_first_child_helper()
3702 if (parent->flavor == CIL_OPTIONAL) { in __cil_resolve_ast_first_child_helper()
3708 } else if (parent->flavor == CIL_BLOCK) { in __cil_resolve_ast_first_child_helper()
3715 } else if (parent->flavor == CIL_BOOLEANIF) { in __cil_resolve_ast_first_child_helper()
3717 } else if (parent->flavor == CIL_MACRO) { in __cil_resolve_ast_first_child_helper()
3741 if (parent->flavor == CIL_MACRO) { in __cil_resolve_ast_last_child_helper()
3743 } else if (parent->flavor == CIL_OPTIONAL) { in __cil_resolve_ast_last_child_helper()
3758 } else if (parent->flavor == CIL_BOOLEANIF) { in __cil_resolve_ast_last_child_helper()
3760 } else if (parent->flavor == CIL_BLOCK) { in __cil_resolve_ast_last_child_helper()
3944 switch (node->flavor) { in __cil_resolve_name_with_parents()
4050 if (node->flavor == CIL_BLOCK) { in cil_resolve_name()
4053 if (ast_node->flavor != CIL_IN) { in cil_resolve_name()
4059 if (node->flavor == CIL_MACRO) { in cil_resolve_name()
4090 if (node->flavor == CIL_TYPEALIAS || node->flavor == CIL_SENSALIAS in cil_resolve_name()
4091 || node->flavor == CIL_CATALIAS) { in cil_resolve_name()