• Home
  • Raw
  • Download

Lines Matching refs:flavor

140 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor)  in cil_verify_is_list()  argument
145 switch (curr->flavor) { in cil_verify_is_list()
153 if (flavor == CIL_CAT) { in cil_verify_is_list()
156 if (n->flavor == CIL_CATSET) { in cil_verify_is_list()
569 switch(node->flavor) { in __cil_post_db_count_helper()
677 switch(node->flavor) { in __cil_post_db_array_helper()
896 if (node->flavor == CIL_TYPEATTRIBUTE) { in __cil_type_to_bitmap()
903 } else if (node->flavor == CIL_TYPEALIAS) { in __cil_type_to_bitmap()
950 if (node->flavor == CIL_USERATTRIBUTE) { in __cil_user_to_bitmap()
996 if (node->flavor == CIL_ROLEATTRIBUTE) { in __cil_role_to_bitmap()
1147 if (node->flavor == CIL_CATSET) { in __cil_cat_to_bitmap()
1162 } else if (node->flavor == CIL_CATALIAS) { in __cil_cat_to_bitmap()
1196 if (n1->flavor == CIL_CATSET || n2->flavor == CIL_CATSET) { in __cil_cat_expr_range_to_bitmap_helper()
1201 if (n1->flavor == CIL_CATALIAS) { in __cil_cat_expr_range_to_bitmap_helper()
1206 if (n2->flavor == CIL_CATALIAS) { in __cil_cat_expr_range_to_bitmap_helper()
1263 static int __cil_expr_to_bitmap_helper(struct cil_list_item *curr, enum cil_flavor flavor, ebitmap_… in __cil_expr_to_bitmap_helper() argument
1267 if (curr->flavor == CIL_DATUM) { in __cil_expr_to_bitmap_helper()
1268 switch (flavor) { in __cil_expr_to_bitmap_helper()
1287 } else if (curr->flavor == CIL_LIST) { in __cil_expr_to_bitmap_helper()
1294 } else if (flavor == CIL_PERMISSIONX) { in __cil_expr_to_bitmap_helper()
1307 enum cil_flavor flavor; in __cil_expr_to_bitmap() local
1315 flavor = expr->flavor; in __cil_expr_to_bitmap()
1317 if (curr->flavor == CIL_OP) { in __cil_expr_to_bitmap()
1330 if (flavor == CIL_CAT) { in __cil_expr_to_bitmap()
1338 } else if (flavor == CIL_PERMISSIONX) { in __cil_expr_to_bitmap()
1352 rc = __cil_expr_to_bitmap_helper(curr->next, flavor, &b1, max, db); in __cil_expr_to_bitmap()
1367 rc = __cil_expr_to_bitmap_helper(curr->next->next, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1395 rc = __cil_expr_to_bitmap_helper(curr, flavor, &b2, max, db); in __cil_expr_to_bitmap()
1502 if (curr->flavor == CIL_DATUM) { in __mark_neverallow_attrs()
1511 } else if (curr->flavor == CIL_LIST) { in __mark_neverallow_attrs()
1519 switch (node->flavor) { in __cil_post_db_neverallow_attr_helper()
1551 switch (node->flavor) { in __cil_post_db_attr_helper()
1623 if (node->flavor == CIL_TYPE) { in __cil_role_assign_types()
1629 } else if (node->flavor == CIL_TYPEALIAS) { in __cil_role_assign_types()
1636 } else if (node->flavor == CIL_TYPEATTRIBUTE) { in __cil_role_assign_types()
1652 switch (node->flavor) { in __cil_post_db_roletype_helper()
1670 if (role_node->flavor == CIL_ROLEATTRIBUTE) { in __cil_post_db_roletype_helper()
1716 if (node->flavor == CIL_ROLE) { in __cil_user_assign_roles()
1722 } else if (node->flavor == CIL_ROLEATTRIBUTE) { in __cil_user_assign_roles()
1747 switch (node->flavor) { in __cil_post_db_userrole_helper()
1765 if (user_node->flavor == CIL_USERATTRIBUTE) { in __cil_post_db_userrole_helper()
1832 switch (node->flavor) { in __cil_post_db_cat_helper()
2040 enum cil_flavor flavor; member
2062 static int __evaluate_perm_expression(struct cil_list *perms, enum cil_flavor flavor, symtab_t *cla… in __evaluate_perm_expression() argument
2079 cil_list_init(new_list, flavor); in __evaluate_perm_expression()
2081 args.flavor = flavor; in __evaluate_perm_expression()
2135 if (curr->flavor == CIL_CLASSPERMS) { in __evaluate_classperms_list()
2207 switch (node->flavor) { in __cil_post_db_classperms_helper()
2264 if (node->flavor == CIL_BLOCK) { in __cil_post_report_conflict()
2269 } else if (node->flavor == CIL_MACRO) { in __cil_post_report_conflict()
2271 } else if (node->flavor == li->flavor) { in __cil_post_report_conflict()
2280 …ncompar)(const void *, const void *), struct cil_db *db, enum cil_flavor flavor, const char *flavo… in __cil_post_process_context_rules() argument
2304 li.flavor = flavor; in __cil_post_process_context_rules()