Lines Matching defs:flavor
151 if (node->flavor == CIL_USERATTRIBUTE) {
177 if (node->flavor == CIL_ROLEATTRIBUTE) {
203 if (node->flavor == CIL_TYPEATTRIBUTE) {
461 sepol_type->flavor = TYPE_TYPE;
516 sepol_alias->flavor = TYPE_TYPE;
570 sepol_attr->flavor = TYPE_ATTRIB;
605 if (pdb->type_val_to_struct[i] && pdb->type_val_to_struct[i]->flavor != TYPE_ATTRIB) {
1438 if (curr->flavor == CIL_CLASSPERMS) {
1478 if (node->flavor != CIL_TYPEATTRIBUTE) {
1971 enum cil_flavor flavor;
1981 flavor = node->flavor;
1982 switch (flavor) {
2026 static void __cil_expr_to_string(struct cil_list *expr, enum cil_flavor flavor, char **out);
2028 static void __cil_expr_to_string_helper(struct cil_list_item *curr, enum cil_flavor flavor, char **out)
2032 if (curr->flavor == CIL_DATUM) {
2034 } else if (curr->flavor == CIL_LIST) {
2035 __cil_expr_to_string(curr->data, flavor, &c);
2038 } else if (flavor == CIL_PERMISSIONX) {
2039 // permissionx expressions aren't resolved into anything, so curr->flavor
2040 // is just a CIL_STRING, not a CIL_DATUM, so just check on flavor for those
2045 static void __cil_expr_to_string(struct cil_list *expr, enum cil_flavor flavor, char **out)
2059 if (curr->flavor == CIL_OP) {
2065 __cil_expr_to_string_helper(curr->next, flavor, &s1);
2066 __cil_expr_to_string_helper(curr->next->next, flavor, &s2);
2071 __cil_expr_to_string_helper(curr->next, flavor, &s1);
2079 __cil_expr_to_string_helper(curr->next->next, flavor, &s2);
2097 __cil_expr_to_string_helper(curr, flavor, &c1);
2100 __cil_expr_to_string_helper(curr, flavor, &s1);
2116 } else if (item->flavor == CIL_DATUM) {
2128 } else if (item->flavor == CIL_LIST) {
2148 enum cil_flavor flavor = cil_expr->flavor;
2151 if (flavor != CIL_BOOL) {
2158 } else if (item->flavor == CIL_OP) {
2365 if (cb_node->flavor == CIL_CONDBLOCK) {
2367 if (cb->flavor == CIL_CONDTRUE) {
2369 } else if (cb->flavor == CIL_CONDFALSE) {
2704 if (r_item->flavor == CIL_CONS_OPERAND) {
2708 if (r_item->flavor == CIL_DATUM) {
2713 } else if (r_item->flavor == CIL_LIST) {
2738 enum cil_flavor flavor;
2748 flavor = cil_expr->flavor;
2792 rc = __cil_constrain_expr_leaf_to_sepol_expr(pdb, db, item, flavor, op);
2942 if (curr->flavor == CIL_CLASSPERMS) {
3035 if (node->flavor == CIL_CATSET) {
3748 switch (def->flavor) {
3837 if (node->flavor >= CIL_MIN_DECLARATIVE) {
3845 switch (node->flavor) {
3879 switch (node->flavor) {
3968 switch (node->flavor) {
4007 if (node->flavor == CIL_BLOCK) {
4014 } else if (node->flavor == CIL_MACRO) {
4018 } else if (node->flavor == CIL_BOOLEANIF) {
4488 if (i->flavor == CIL_CLASSPERMS) {
4590 if (n->flavor == CIL_TYPEATTRIBUTE) {
4664 if (n->flavor != CIL_SRC_INFO) {
4674 if (i1->flavor == CIL_CLASSPERMS) {