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