Lines Matching refs:flavor
83 if (parent->flavor == CIL_CALL) {
86 } else if (parent->flavor == CIL_MACRO) {
93 if (param->flavor == CIL_NAME && param->str == key) {
119 cil_list_init(perm_datums, perm_strs->flavor);
122 if (curr->flavor == CIL_LIST) {
130 } else if (curr->flavor == CIL_STRING) {
148 cil_list_append(*perm_datums, curr->flavor, curr->data);
225 if (curr->flavor == CIL_CLASSPERMS) {
269 cil_list_append(cp->classperms, curr->flavor, curr->data);
414 if (result_node->flavor != CIL_TYPE) {
415 cil_log(CIL_ERR, "Type rule result must be a type [%d]\n",result_node->flavor);
442 if (attr_node->flavor != CIL_TYPEATTRIBUTE) {
486 if (attr_node->flavor != CIL_TYPEATTRIBUTE) {
501 static int cil_resolve_aliasactual(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor, enum cil_flavor alias_flavor)
510 rc = cil_flavor_to_symtab_index(flavor, &sym_index);
530 if (FLAVOR(actual_datum) != flavor && FLAVOR(actual_datum) != alias_flavor) {
552 static int cil_resolve_alias_to_actual(struct cil_tree_node *current, enum cil_flavor flavor)
568 while (flavor != a1_node->flavor) {
614 if (type_node->flavor != CIL_TYPE && type_node->flavor != CIL_TYPEALIAS) {
678 if (result_node->flavor != CIL_TYPE && result_node->flavor != CIL_TYPEALIAS) {
767 if (NODE(class_datum)->flavor != CIL_CLASS) {
835 cil_list_append(mp->classperms, curr->flavor, curr->data);
885 if (user_node->flavor != CIL_USER) {
938 if (user_node->flavor != CIL_USER) {
989 if (user_node->flavor != CIL_USER) {
1016 if (user_node->flavor != CIL_USER) {
1108 if (node->flavor != CIL_ROLE) {
1160 if (attr_node->flavor != CIL_ROLEATTRIBUTE) {
1235 if (item->flavor == CIL_SID) {
1242 } else if (item->flavor == CIL_CLASS) {
1249 } else if (item->flavor == CIL_CAT) {
1256 } else if (item->flavor == CIL_SENS) {
1265 return cil_list_insert(old, curr, item->flavor, item->data);
1401 if (item->flavor == CIL_CLASS) {
1604 if (node->flavor != CIL_CAT) {
1863 if (node->flavor != CIL_USER) {
1877 if (node->flavor != CIL_ROLE) {
1892 if (node->flavor != CIL_TYPE && node->flavor != CIL_TYPEALIAS) {
2342 if (node->flavor != CIL_BLOCK) {
2404 if (node->flavor == CIL_BLOCK) {
2424 if (block_node->flavor != CIL_BLOCK) {
2458 if (block_node->flavor == CIL_OPTIONAL) {
2497 if (curr->flavor != CIL_NODE) {
2516 curr->flavor = CIL_NONE;
2535 static int cil_resolve_bounds(struct cil_tree_node *current, void *extra_args, enum cil_flavor flavor, enum cil_flavor attr_flavor)
2543 rc = cil_flavor_to_symtab_index(flavor, &index);
2569 switch (flavor) {
2624 cil_list_init(&def->class_datums, def->flavor);
2672 if (curr->flavor == CIL_CALL) {
2680 if (terminating_node->flavor == CIL_MACRO) {
2688 if (curr->flavor == CIL_MACRO) {
2705 if (curr->flavor == CIL_CALL) {
2714 } else if (curr->flavor == CIL_MACRO) {
2761 enum cil_flavor flavor = ((struct cil_param*)item->data)->flavor;
2768 if (item->flavor != CIL_PARAM) {
2775 switch (flavor) {
2858 cat_node->flavor = CIL_CATSET;
2888 lvl_node->flavor = CIL_LEVEL;
2918 range_node->flavor = CIL_LEVELRANGE;
2952 addr_node->flavor = CIL_IPADDR;
2993 cp_node->flavor = CIL_CLASSPERMISSION;
3008 cil_log(CIL_ERR, "Unexpected flavor: %d\n",
3009 (((struct cil_param*)item->data)->flavor));
3015 arg->flavor = flavor;
3053 if (macro_node->flavor != CIL_MACRO) {
3104 switch (arg->flavor) {
3188 while (n && n->flavor != CIL_ROOT) {
3235 rc = cil_flavor_to_symtab_index(arg->flavor, ¶m_index);
3260 switch (str_expr->flavor) {
3283 cil_list_init(datum_expr, str_expr->flavor);
3286 switch (curr->flavor) {
3292 if (sym_index == CIL_SYM_CATS && NODE(res_datum)->flavor == CIL_CATSET) {
3328 if (curr->flavor == CIL_OP) {
3331 cil_list_append(*datum_expr, curr->flavor, curr->data);
3364 } else if (curr->flavor == CIL_DATUM) {
3367 } else if (curr->flavor == CIL_LIST) {
3381 } else if (curr->flavor == CIL_OP) {
3429 if (current->cl_head != NULL && current->cl_head->flavor == CIL_CONDBLOCK) {
3431 if (cb->flavor == CIL_CONDTRUE) {
3433 } else if (cb->flavor == CIL_CONDFALSE) {
3438 if (current->cl_head != NULL && current->cl_head->next != NULL && current->cl_head->next->flavor == CIL_CONDBLOCK) {
3440 if (cb->flavor == CIL_CONDTRUE) {
3442 } else if (cb->flavor == CIL_CONDFALSE) {
3487 if (attr_node->flavor != CIL_USERATTRIBUTE) {
3537 if (node->flavor == CIL_BLOCKINHERIT) {
3552 if (node->flavor == CIL_BLOCKINHERIT) {
3628 if (node->flavor == CIL_TUNABLEIF) {
3633 if (node->flavor == CIL_IN) {
3643 if (node->flavor == CIL_BLOCKINHERIT) {
3648 if (node->flavor == CIL_BLOCK) {
3653 if (node->flavor == CIL_BLOCKABSTRACT) {
3658 if (node->flavor == CIL_IN) {
3668 if (node->flavor == CIL_CALL && args->macro == NULL) {
3673 if (node->flavor == CIL_CALL && args->macro == NULL) {
3678 switch (node->flavor) {
3693 switch (node->flavor) {
3708 switch (node->flavor) {
3729 switch (node->flavor) {
3738 switch (node->flavor) {
3750 switch (node->flavor) {
3920 if (node->flavor == CIL_CAT ||
3921 node->flavor == CIL_SENS) {
3929 if (node->flavor == CIL_TUNABLE ||
3930 node->flavor == CIL_IN ||
3931 node->flavor == CIL_BLOCK ||
3932 node->flavor == CIL_BLOCKINHERIT ||
3933 node->flavor == CIL_BLOCKABSTRACT ||
3934 node->flavor == CIL_MACRO) {
3942 if (node->flavor == CIL_TUNABLE ||
3943 node->flavor == CIL_IN ||
3944 node->flavor == CIL_BLOCK ||
3945 node->flavor == CIL_BLOCKABSTRACT ||
3946 node->flavor == CIL_MACRO) {
3954 if (node->flavor != CIL_TUNABLEIF &&
3955 node->flavor != CIL_CALL &&
3956 node->flavor != CIL_CONDBLOCK &&
3957 node->flavor != CIL_AVRULE &&
3958 node->flavor != CIL_TYPE_RULE &&
3959 node->flavor != CIL_NAMETYPETRANSITION) {
3961 } else if (node->flavor == CIL_AVRULE) {
3977 if (node->flavor == CIL_MACRO) {
3985 if (node->flavor == CIL_BLOCK && ((((struct cil_block*)node->data)->is_abstract == CIL_TRUE) && (pass > CIL_PASS_BLKABS))) {
4024 if (parent->flavor == CIL_BLOCK) {
4026 } else if (parent->flavor == CIL_MACRO) {
4028 } else if (parent->flavor == CIL_OPTIONAL) {
4030 } else if (parent->flavor == CIL_BOOLEANIF) {
4053 if (parent->flavor == CIL_BLOCK) {
4056 while (n && n->flavor != CIL_ROOT) {
4057 if (n->flavor == CIL_BLOCK) {
4063 } else if (parent->flavor == CIL_MACRO) {
4065 } else if (parent->flavor == CIL_OPTIONAL) {
4073 while (n && n->flavor != CIL_ROOT) {
4074 if (n->flavor == CIL_OPTIONAL) {
4080 } else if (parent->flavor == CIL_BOOLEANIF) {
4293 switch (node->flavor) {
4378 if (node->flavor == CIL_TYPEALIAS || node->flavor == CIL_SENSALIAS
4379 || node->flavor == CIL_CATALIAS) {
4446 if (node->flavor == CIL_BLOCK) {
4449 if (ast_node->flavor != CIL_IN) {
4455 if (node->flavor == CIL_MACRO) {