Home | History | Annotate | Download | only in src

Lines Matching defs:flavor

53 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor)
58 switch (curr->flavor) {
66 if (flavor == CIL_CAT) {
69 if (n->flavor == CIL_CATSET) {
331 switch(node->flavor) {
433 switch(node->flavor) {
630 if (node->flavor == CIL_TYPEATTRIBUTE) {
637 flavor == CIL_TYPEALIAS) {
684 if (node->flavor == CIL_USERATTRIBUTE) {
730 if (node->flavor == CIL_ROLEATTRIBUTE) {
888 if (node->flavor == CIL_CATSET) {
903 } else if (node->flavor == CIL_CATALIAS) {
937 if (n1->flavor == CIL_CATSET || n2->flavor == CIL_CATSET) {
942 if (n1->flavor == CIL_CATALIAS) {
947 if (n2->flavor == CIL_CATALIAS) {
999 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)
1003 if (curr->flavor == CIL_DATUM) {
1004 switch (flavor) {
1023 } else if (curr->flavor == CIL_LIST) {
1030 } else if (flavor == CIL_PERMISSIONX) {
1031 // permissionx expressions aren't resolved into anything, so curr->flavor
1032 // is just a CIL_STRING, not a CIL_DATUM, so just check on flavor for those
1043 enum cil_flavor flavor;
1051 flavor = expr->flavor;
1053 if (curr->flavor == CIL_OP) {
1066 if (flavor == CIL_CAT) {
1074 } else if (flavor == CIL_PERMISSIONX) {
1088 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db);
1103 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db);
1130 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db);
1194 switch (node->flavor) {
1265 if (node->flavor == CIL_TYPE) {
1271 } else if (node->flavor == CIL_TYPEALIAS) {
1278 } else if (node->flavor == CIL_TYPEATTRIBUTE) {
1294 switch (node->flavor) {
1312 if (role_node->flavor == CIL_ROLEATTRIBUTE) {
1362 if (node->flavor == CIL_ROLE) {
1368 } else if (node->flavor == CIL_ROLEATTRIBUTE) {
1393 switch (node->flavor) {
1411 if (user_node->flavor == CIL_USERATTRIBUTE) {
1482 switch (node->flavor) {
1674 enum cil_flavor flavor;
1696 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)
1713 cil_list_init(new_list, flavor);
1715 args.flavor = flavor;
1769 if (curr->flavor == CIL_CLASSPERMS) {
1771 if (FLAVOR(cp->class) == CIL_CLASS) {
1837 switch (node->flavor) {