Lines Matching defs:flavor

56 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor)
61 switch (curr->flavor) {
69 if (flavor == CIL_CAT) {
72 if (n->flavor == CIL_CATSET) {
334 switch(node->flavor) {
436 switch(node->flavor) {
633 if (node->flavor == CIL_TYPEATTRIBUTE) {
640 } else if (node->flavor == CIL_TYPEALIAS) {
687 if (node->flavor == CIL_USERATTRIBUTE) {
733 if (node->flavor == CIL_ROLEATTRIBUTE) {
885 if (node->flavor == CIL_CATSET) {
900 } else if (node->flavor == CIL_CATALIAS) {
934 if (n1->flavor == CIL_CATSET || n2->flavor == CIL_CATSET) {
939 if (n1->flavor == CIL_CATALIAS) {
944 if (n2->flavor == CIL_CATALIAS) {
1001 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)
1005 if (curr->flavor == CIL_DATUM) {
1006 switch (flavor) {
1025 } else if (curr->flavor == CIL_LIST) {
1032 } else if (flavor == CIL_PERMISSIONX) {
1033 // permissionx expressions aren't resolved into anything, so curr->flavor
1034 // is just a CIL_STRING, not a CIL_DATUM, so just check on flavor for those
1045 enum cil_flavor flavor;
1053 flavor = expr->flavor;
1055 if (curr->flavor == CIL_OP) {
1068 if (flavor == CIL_CAT) {
1076 } else if (flavor == CIL_PERMISSIONX) {
1090 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db);
1105 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db);
1132 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db);
1227 switch (node->flavor) {
1299 if (node->flavor == CIL_TYPE) {
1305 } else if (node->flavor == CIL_TYPEALIAS) {
1312 } else if (node->flavor == CIL_TYPEATTRIBUTE) {
1328 switch (node->flavor) {
1346 if (role_node->flavor == CIL_ROLEATTRIBUTE) {
1396 if (node->flavor == CIL_ROLE) {
1402 } else if (node->flavor == CIL_ROLEATTRIBUTE) {
1427 switch (node->flavor) {
1445 if (user_node->flavor == CIL_USERATTRIBUTE) {
1516 switch (node->flavor) {
1708 enum cil_flavor flavor;
1730 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)
1747 cil_list_init(new_list, flavor);
1749 args.flavor = flavor;
1803 if (curr->flavor == CIL_CLASSPERMS) {
1871 switch (node->flavor) {