Lines Matching defs:flavor
51 static int __cil_is_reserved_name(const char *name, enum cil_flavor flavor)
53 switch (flavor) {
95 int cil_verify_name(const struct cil_db *db, const char *name, enum cil_flavor flavor)
135 if (__cil_is_reserved_name(name, flavor)) {
407 if (param->flavor == node->flavor) {
418 static int cil_verify_no_self_reference(enum cil_flavor flavor, struct cil_symtab_datum *datum, struct cil_stack *stack);
430 if (item->flavor == CIL_DATUM) {
433 } else if (item->flavor == CIL_LIST) {
444 static int cil_verify_no_self_reference(enum cil_flavor flavor, struct cil_symtab_datum *datum, struct cil_stack *stack)
458 switch (flavor) {
506 if (curr->flavor == CIL_LIST) {
522 uint32_t *flavor;
528 uint32_t *flavor = args->flavor;
530 if (node->flavor == *flavor) {
531 if (node->flavor == CIL_SID) {
537 } else if (node->flavor == CIL_CLASS) {
543 } else if (node->flavor == CIL_CAT) {
549 } else if (node->flavor == CIL_SENS) {
561 int __cil_verify_ordered(struct cil_tree_node *current, enum cil_flavor flavor)
566 extra_args.flavor = &flavor;
982 switch (node->flavor) {
1028 switch (rule_node->flavor) {
1067 if (temp_node->flavor == CIL_TYPE_RULE) {
1095 const char * flavor = cil_node_to_string(node);
1097 cil_tree_log(node, CIL_ERR, "Invalid %s statement in tunableif (treated as a booleanif due to preserve-tunables)", flavor);
1099 cil_tree_log(node, CIL_ERR, "Invalid %s statement in booleanif", flavor);
1549 if (node->flavor == CIL_MACRO) {
1553 } else if (node->flavor == CIL_BLOCK) {
1564 switch (node->flavor) {
1628 switch (node->flavor) {
1707 enum cil_flavor flavor,
1714 if (flavor == CIL_MAP_PERM) {
1723 if (flavor == CIL_MAP_PERM) {
1739 if (curr->flavor == CIL_CLASSPERMS) {
1744 if (i->flavor != CIL_OP) {
1837 switch (node->flavor) {
1864 rc = cil_verify_no_self_reference(node->flavor, node->data, stack);