Lines Matching refs:flavor

58 int cil_fill_list(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **list)  in cil_fill_list()  argument
73 cil_list_init(list, flavor); in cil_fill_list()
101 ast_node->flavor = nflavor; in cil_gen_node()
119 if (ast_node->flavor >= CIL_MIN_DECLARATIVE && ast_node->parent->flavor == CIL_MACRO) { in cil_gen_node()
125 if (param->flavor == ast_node->flavor) { in cil_gen_node()
150 ast_node->flavor = CIL_NONE; in cil_clear_node()
234 ast_node->flavor = CIL_BLOCKINHERIT; in cil_gen_blockinherit()
279 ast_node->flavor = CIL_BLOCKABSTRACT; in cil_gen_blockabstract()
325 ast_node->flavor = CIL_IN; in cil_gen_in()
454 ast_node->flavor = CIL_CLASSORDER; in cil_gen_classorder()
478 …ree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num… in cil_gen_perm() argument
488 …_gen_node(db, ast_node, (struct cil_symtab_datum*)perm, (hashtab_key_t)key, CIL_SYM_PERMS, flavor); in cil_gen_perm()
516 …tree_node *current_perm, struct cil_tree_node *ast_node, enum cil_flavor flavor, unsigned int *num… in cil_gen_perm_nodes() argument
532 rc = cil_gen_perm(db, current_perm, new_ast, flavor, num_perms); in cil_gen_perm_nodes()
698 if (curr->flavor == CIL_CLASSPERMS) { in cil_destroy_classperms_list()
798 ast_node->flavor = CIL_CLASSPERMISSIONSET; in cil_gen_classpermissionset()
895 ast_node->flavor = CIL_CLASSMAPPING; in cil_gen_classmapping()
992 ast_node->flavor = CIL_CLASSCOMMON; in cil_gen_classcommon()
1100 ast_node->flavor = CIL_SIDCONTEXT; in cil_gen_sidcontext()
1161 ast_node->flavor = CIL_SIDORDER; in cil_gen_sidorder()
1334 ast_node->flavor = CIL_USERATTRIBUTESET; in cil_gen_userattributeset()
1395 ast_node->flavor = CIL_USERLEVEL; in cil_gen_userlevel()
1456 ast_node->flavor = CIL_USERRANGE; in cil_gen_userrange()
1507 ast_node->flavor = CIL_USERPREFIX; in cil_gen_userprefix()
1565 ast_node->flavor = CIL_SELINUXUSER; in cil_gen_selinuxuser()
1613 ast_node->flavor = CIL_SELINUXUSERDEFAULT; in cil_gen_selinuxuserdefault()
1715 ast_node->flavor = CIL_ROLETYPE; in cil_gen_roletype()
1762 ast_node->flavor = CIL_USERROLE; in cil_gen_userrole()
1813 ast_node->flavor = CIL_ROLETRANSITION; in cil_gen_roletransition()
1860 ast_node->flavor = CIL_ROLEALLOW; in cil_gen_roleallow()
1980 ast_node->flavor = CIL_ROLEATTRIBUTESET; in cil_gen_roleattributeset()
2040 ast_node->flavor = CIL_AVRULE; in cil_gen_avrule()
2208 ast_node->flavor = CIL_AVRULEX; in cil_gen_avrulex()
2251 ast_node->flavor = CIL_TYPE_RULE; in cil_gen_type_rule()
2538 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *…
2540 static int __cil_fill_expr_helper(struct cil_tree_node *current, enum cil_flavor flavor, struct cil… in __cil_fill_expr_helper() argument
2545 if (flavor == CIL_BOOL && *depth > COND_EXPR_MAXDEPTH) { in __cil_fill_expr_helper()
2552 rc = cil_verify_expr_syntax(current, op, flavor); in __cil_fill_expr_helper()
2567 rc = __cil_fill_expr(current, flavor, expr, depth); in __cil_fill_expr_helper()
2581 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *… in __cil_fill_expr() argument
2594 cil_list_init(&sub_expr, flavor); in __cil_fill_expr()
2595 rc = __cil_fill_expr_helper(current->cl_head, flavor, sub_expr, depth); in __cil_fill_expr()
2609 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr) in cil_gen_expr() argument
2614 cil_list_init(expr, flavor); in cil_gen_expr()
2617 rc = __cil_fill_expr(current, flavor, *expr, &depth); in cil_gen_expr()
2619 rc = __cil_fill_expr_helper(current->cl_head, flavor, *expr, &depth); in cil_gen_expr()
2727 static int __cil_fill_constraint_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct… in __cil_fill_constraint_expr() argument
2759 rc = __cil_fill_constraint_leaf_expr(current, flavor, op, expr); in __cil_fill_constraint_expr()
2765 rc = __cil_fill_constraint_expr(current->next->cl_head, flavor, &lexpr, depth); in __cil_fill_constraint_expr()
2769 cil_list_init(expr, flavor); in __cil_fill_constraint_expr()
2774 rc = __cil_fill_constraint_expr(current->next->cl_head, flavor, &lexpr, depth); in __cil_fill_constraint_expr()
2778 rc = __cil_fill_constraint_expr(current->next->next->cl_head, flavor, &rexpr, depth); in __cil_fill_constraint_expr()
2782 cil_list_init(expr, flavor); in __cil_fill_constraint_expr()
2797 int cil_gen_constraint_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list … in cil_gen_constraint_expr() argument
2806 rc = __cil_fill_constraint_expr(current->cl_head, flavor, expr, &depth); in cil_gen_constraint_expr()
2876 ast_node->flavor = CIL_BOOLEANIF; in cil_gen_boolif()
2961 ast_node->flavor = CIL_TUNABLEIF; in cil_gen_tunif()
2985 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_condblock() argument
3005 if (ast_node->parent->flavor != CIL_BOOLEANIF && ast_node->parent->flavor != CIL_TUNABLEIF) { in cil_gen_condblock()
3011 ast_node->flavor = CIL_CONDBLOCK; in cil_gen_condblock()
3014 cb->flavor = flavor; in cil_gen_condblock()
3037 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_alias() argument
3059 if (flavor == CIL_TYPEALIAS && parse_current->next->data == CIL_KEY_SELF) { in cil_gen_alias()
3069 rc = cil_flavor_to_symtab_index(flavor, &sym_index); in cil_gen_alias()
3074 …cil_gen_node(db, ast_node, (struct cil_symtab_datum*)alias, (hashtab_key_t)key, sym_index, flavor); in cil_gen_alias()
3101 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_aliasactual() argument
3122 …if ((flavor == CIL_TYPEALIAS && parse_current->next->data == CIL_KEY_SELF) || parse_current->next-… in cil_gen_aliasactual()
3135 ast_node->flavor = flavor; in cil_gen_aliasactual()
3185 ast_node->flavor = CIL_TYPEATTRIBUTESET; in cil_gen_typeattributeset()
3233 ast_node->flavor = CIL_TYPEPERMISSIVE; in cil_gen_typepermissive()
3303 ast_node->flavor = CIL_NAMETYPETRANSITION; in cil_gen_typetransition()
3316 ast_node->flavor = CIL_TYPE_RULE; in cil_gen_typetransition()
3389 ast_node->flavor = CIL_RANGETRANSITION; in cil_gen_rangetransition()
3612 ast_node->flavor = CIL_CATORDER; in cil_gen_catorder()
3673 ast_node->flavor = CIL_SENSITIVITYORDER; in cil_gen_sensitivityorder()
3728 ast_node->flavor = CIL_SENSCAT; in cil_gen_senscat()
3922 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_constrain() argument
3950 rc = cil_gen_constraint_expr(parse_current->next->next, flavor, &cons->str_expr); in cil_gen_constrain()
3956 ast_node->flavor = flavor; in cil_gen_constrain()
3980 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_validatetrans() argument
4005 rc = cil_gen_constraint_expr(parse_current->next->next, flavor, &validtrans->str_expr); in cil_gen_validatetrans()
4011 ast_node->flavor = flavor; in cil_gen_validatetrans()
4209 ast_node->flavor = CIL_FILECON; in cil_gen_filecon()
4309 ast_node->flavor = CIL_PORTCON; in cil_gen_portcon()
4391 ast_node->flavor = CIL_NODECON; in cil_gen_nodecon()
4462 ast_node->flavor = CIL_GENFSCON; in cil_gen_genfscon()
4536 ast_node->flavor = CIL_NETIFCON; in cil_gen_netifcon()
4604 ast_node->flavor = CIL_PIRQCON; in cil_gen_pirqcon()
4690 ast_node->flavor = CIL_IOMEMCON; in cil_gen_iomemcon()
4776 ast_node->flavor = CIL_IOPORTCON; in cil_gen_ioportcon()
4840 ast_node->flavor = CIL_PCIDEVICECON; in cil_gen_pcidevicecon()
4901 ast_node->flavor = CIL_DEVICETREECON; in cil_gen_devicetreecon()
4977 ast_node->flavor = CIL_FSUSE; in cil_gen_fsuse()
5062 param->flavor = CIL_TYPE; in cil_gen_macro()
5064 param->flavor = CIL_ROLE; in cil_gen_macro()
5066 param->flavor = CIL_USER; in cil_gen_macro()
5068 param->flavor = CIL_SENS; in cil_gen_macro()
5070 param->flavor = CIL_CAT; in cil_gen_macro()
5072 param->flavor = CIL_CATSET; in cil_gen_macro()
5074 param->flavor = CIL_LEVEL; in cil_gen_macro()
5076 param->flavor = CIL_LEVELRANGE; in cil_gen_macro()
5078 param->flavor = CIL_CLASS; in cil_gen_macro()
5080 param->flavor = CIL_IPADDR; in cil_gen_macro()
5082 param->flavor = CIL_MAP_CLASS; in cil_gen_macro()
5084 param->flavor = CIL_CLASSPERMISSION; in cil_gen_macro()
5086 param->flavor = CIL_BOOL; in cil_gen_macro()
5088 param->flavor = CIL_NAME; in cil_gen_macro()
5090 param->flavor = CIL_NAME; in cil_gen_macro()
5109 if (param->flavor == ((struct cil_param*)curr_param->data)->flavor) { in cil_gen_macro()
5194 ast_node->flavor = CIL_CALL; in cil_gen_call()
5234 switch (args->flavor) { in cil_destroy_args()
5258 cil_log(CIL_ERR, "Destroying arg with the unexpected flavor=%d\n",args->flavor); in cil_destroy_args()
5567 …b *db, struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_bounds() argument
5595 switch (flavor) { in cil_gen_bounds()
5597 ast_node->flavor = CIL_USERBOUNDS; in cil_gen_bounds()
5600 ast_node->flavor = CIL_ROLEBOUNDS; in cil_gen_bounds()
5603 ast_node->flavor = CIL_TYPEBOUNDS; in cil_gen_bounds()
5627 …efault(struct cil_tree_node *parse_current, struct cil_tree_node *ast_node, enum cil_flavor flavor) in cil_gen_default() argument
5647 def->flavor = flavor; in cil_gen_default()
5669 ast_node->flavor = flavor; in cil_gen_default()
5756 ast_node->flavor = CIL_DEFAULTRANGE; in cil_gen_defaultrange()
5817 ast_node->flavor = CIL_HANDLEUNKNOWN; in cil_gen_handleunknown()
5866 ast_node->flavor = CIL_MLS; in cil_gen_mls()
6252 if (ast_current->flavor == CIL_MACRO) { in __cil_build_ast_node_helper()
6256 if (ast_current->flavor == CIL_BOOLEANIF) { in __cil_build_ast_node_helper()
6260 if (ast_current->flavor == CIL_TUNABLEIF) { in __cil_build_ast_node_helper()
6264 if (ast_current->flavor == CIL_IN) { in __cil_build_ast_node_helper()
6296 if (ast->flavor == CIL_ROOT) { in __cil_build_ast_last_child_helper()
6303 if (ast->flavor == CIL_MACRO) { in __cil_build_ast_last_child_helper()
6307 if (ast->flavor == CIL_BOOLEANIF) { in __cil_build_ast_last_child_helper()
6311 if (ast->flavor == CIL_TUNABLEIF) { in __cil_build_ast_last_child_helper()
6315 if (ast->flavor == CIL_IN) { in __cil_build_ast_last_child_helper()