Lines Matching defs:flavor

140 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor)
145 switch (curr->flavor) {
153 if (flavor == CIL_CAT) {
156 if (n->flavor == CIL_CATSET) {
569 switch(node->flavor) {
677 switch(node->flavor) {
896 if (node->flavor == CIL_TYPEATTRIBUTE) {
903 } else if (node->flavor == CIL_TYPEALIAS) {
950 if (node->flavor == CIL_USERATTRIBUTE) {
996 if (node->flavor == CIL_ROLEATTRIBUTE) {
1147 if (node->flavor == CIL_CATSET) {
1162 } else if (node->flavor == CIL_CATALIAS) {
1195 if (n1->flavor == CIL_CATSET || n2->flavor == CIL_CATSET) {
1200 if (n1->flavor == CIL_CATALIAS) {
1205 if (n2->flavor == CIL_CATALIAS) {
1257 static int __cil_expr_to_bitmap_helper(struct cil_list_item *curr, enum cil_flavor flavor, ebitmap_t *bitmap, int max, struct cil_db *db)
1261 if (curr->flavor == CIL_DATUM) {
1262 switch (flavor) {
1281 } else if (curr->flavor == CIL_LIST) {
1288 } else if (flavor == CIL_PERMISSIONX) {
1289 // permissionx expressions aren't resolved into anything, so curr->flavor
1290 // is just a CIL_STRING, not a CIL_DATUM, so just check on flavor for those
1301 enum cil_flavor flavor;
1309 flavor = expr->flavor;
1311 if (curr->flavor == CIL_OP) {
1322 if (flavor == CIL_CAT) {
1328 } else if (flavor == CIL_PERMISSIONX) {
1340 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db);
1355 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db);
1383 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db);
1490 if (curr->flavor == CIL_DATUM) {
1499 } else if (curr->flavor == CIL_LIST) {
1507 switch (node->flavor) {
1539 switch (node->flavor) {
1611 if (node->flavor == CIL_TYPE) {
1617 } else if (node->flavor == CIL_TYPEALIAS) {
1624 } else if (node->flavor == CIL_TYPEATTRIBUTE) {
1640 switch (node->flavor) {
1658 if (role_node->flavor == CIL_ROLEATTRIBUTE) {
1704 if (node->flavor == CIL_ROLE) {
1710 } else if (node->flavor == CIL_ROLEATTRIBUTE) {
1735 switch (node->flavor) {
1753 if (user_node->flavor == CIL_USERATTRIBUTE) {
1820 switch (node->flavor) {
2028 enum cil_flavor flavor;
2050 static int __evaluate_perm_expression(struct cil_list *perms, enum cil_flavor flavor, symtab_t *class_symtab, symtab_t *common_symtab, unsigned int num_perms, struct cil_list **new_list, struct cil_db *db)
2067 cil_list_init(new_list, flavor);
2069 args.flavor = flavor;
2123 if (curr->flavor == CIL_CLASSPERMS) {
2195 switch (node->flavor) {
2252 if (node->flavor == CIL_BLOCK) {
2257 } else if (node->flavor == CIL_MACRO) {
2259 } else if (node->flavor == li->flavor) {
2268 static int __cil_post_process_context_rules(struct cil_sort *sort, int (*compar)(const void *, const void *), int (*concompar)(const void *, const void *), struct cil_db *db, enum cil_flavor flavor, const char *flavor_str)
2298 li.flavor = flavor;