Lines Matching refs:flavor
53 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor) in cil_verify_is_list() argument
58 switch (curr->flavor) { in cil_verify_is_list()
66 if (flavor == CIL_CAT) { in cil_verify_is_list()
69 if (n->flavor == CIL_CATSET) { in cil_verify_is_list()
331 switch(node->flavor) { in __cil_post_db_count_helper()
433 switch(node->flavor) { in __cil_post_db_array_helper()
630 if (node->flavor == CIL_TYPEATTRIBUTE) { in __cil_type_to_bitmap()
637 } else if (node->flavor == CIL_TYPEALIAS) { in __cil_type_to_bitmap()
684 if (node->flavor == CIL_USERATTRIBUTE) { in __cil_user_to_bitmap()
730 if (node->flavor == CIL_ROLEATTRIBUTE) { in __cil_role_to_bitmap()
888 if (node->flavor == CIL_CATSET) { in __cil_cat_to_bitmap()
903 } else if (node->flavor == CIL_CATALIAS) { in __cil_cat_to_bitmap()
937 if (n1->flavor == CIL_CATSET || n2->flavor == CIL_CATSET) { in __cil_cat_expr_range_to_bitmap_helper()
942 if (n1->flavor == CIL_CATALIAS) { in __cil_cat_expr_range_to_bitmap_helper()
947 if (n2->flavor == CIL_CATALIAS) { in __cil_cat_expr_range_to_bitmap_helper()
999 static int __cil_expr_to_bitmap_helper(struct cil_list_item *curr, enum cil_flavor flavor, ebitmap_… in __cil_expr_to_bitmap_helper() argument
1003 if (curr->flavor == CIL_DATUM) { in __cil_expr_to_bitmap_helper()
1004 switch (flavor) { in __cil_expr_to_bitmap_helper()
1023 } else if (curr->flavor == CIL_LIST) { in __cil_expr_to_bitmap_helper()
1030 } else if (flavor == CIL_PERMISSIONX) { in __cil_expr_to_bitmap_helper()
1043 enum cil_flavor flavor; in __cil_expr_to_bitmap() local
1051 flavor = expr->flavor; in __cil_expr_to_bitmap()
1053 if (curr->flavor == CIL_OP) { in __cil_expr_to_bitmap()
1066 if (flavor == CIL_CAT) { in __cil_expr_to_bitmap()
1074 } else if (flavor == CIL_PERMISSIONX) { in __cil_expr_to_bitmap()
1088 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db); in __cil_expr_to_bitmap()
1103 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1130 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1194 switch (node->flavor) { in __cil_post_db_attr_helper()
1265 if (node->flavor == CIL_TYPE) { in __cil_role_assign_types()
1271 } else if (node->flavor == CIL_TYPEALIAS) { in __cil_role_assign_types()
1278 } else if (node->flavor == CIL_TYPEATTRIBUTE) { in __cil_role_assign_types()
1294 switch (node->flavor) { in __cil_post_db_roletype_helper()
1312 if (role_node->flavor == CIL_ROLEATTRIBUTE) { in __cil_post_db_roletype_helper()
1362 if (node->flavor == CIL_ROLE) { in __cil_user_assign_roles()
1368 } else if (node->flavor == CIL_ROLEATTRIBUTE) { in __cil_user_assign_roles()
1393 switch (node->flavor) { in __cil_post_db_userrole_helper()
1411 if (user_node->flavor == CIL_USERATTRIBUTE) { in __cil_post_db_userrole_helper()
1482 switch (node->flavor) { in __cil_post_db_cat_helper()
1674 enum cil_flavor flavor; member
1696 static int __evaluate_perm_expression(struct cil_list *perms, enum cil_flavor flavor, symtab_t *cla… in __evaluate_perm_expression() argument
1713 cil_list_init(new_list, flavor); in __evaluate_perm_expression()
1715 args.flavor = flavor; in __evaluate_perm_expression()
1769 if (curr->flavor == CIL_CLASSPERMS) { in __evaluate_classperms_list()
1837 switch (node->flavor) { in __cil_post_db_classperms_helper()