Lines Matching refs:fqn
128 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper()
135 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper()
151 if (strcmp(role->datum.fqn, "object_r") != 0) { in __cil_gather_statements_helper()
192 fprintf(out, "%s %s;\n", kind, DATUM(i1->data)->fqn); in cil_simple_rules_to_policy()
210 fprintf(out, "%s%s", lead, DATUM(first)->fqn); in cil_cats_to_policy()
217 fprintf(out, "%s%s", lead, DATUM(first)->fqn); in cil_cats_to_policy()
224 fprintf(out, "%s", DATUM(last)->fqn); in cil_cats_to_policy()
230 fprintf(out, "%s%s", lead, DATUM(first)->fqn); in cil_cats_to_policy()
237 fprintf(out, "%s", DATUM(last)->fqn); in cil_cats_to_policy()
244 fprintf(out, "%s", DATUM(level->sens)->fqn); in cil_level_to_policy()
274 fprintf(out, "%s:", DATUM(context->user)->fqn); in cil_context_to_policy()
275 fprintf(out, "%s:", DATUM(context->role)->fqn); in cil_context_to_policy()
276 fprintf(out, "%s", DATUM(context->type)->fqn); in cil_context_to_policy()
329 fprintf(out, "%s", DATUM(i1->data)->fqn); in cil_cond_expr_to_policy()
347 len += strlen(DATUM(db->val_to_user[i])->fqn); in __cil_userattribute_len()
368 len = strlen(DATUM(operand->data)->fqn); in __cil_cons_leaf_operand_len()
377 len += strlen(DATUM(operand->data)->fqn); in __cil_cons_leaf_operand_len()
457 str = DATUM(db->val_to_user[i])->fqn; in __cil_userattribute_to_string()
530 o_str = DATUM(operand->data)->fqn; in __cil_cons_leaf_operand_to_string()
542 o_str = DATUM(operand->data)->fqn; in __cil_cons_leaf_operand_to_string()
656 len += strlen(DATUM(classperms->class)->fqn) + 1; in cil_classperms_to_string()
658 len += strlen(DATUM(i1->data)->fqn) + 1; in cil_classperms_to_string()
667 len = strlen(DATUM(classperms->class)->fqn); in cil_classperms_to_string()
668 memcpy(curr, DATUM(classperms->class)->fqn, len); in cil_classperms_to_string()
675 len = strlen(DATUM(i1->data)->fqn); in cil_classperms_to_string()
676 memcpy(curr, DATUM(i1->data)->fqn, len); in cil_classperms_to_string()
714 fprintf(out, "class %s\n", DATUM(i1->data)->fqn); in cil_class_decls_to_policy()
723 fprintf(out, "sid %s\n", DATUM(i1->data)->fqn); in cil_sid_decls_to_policy()
739 fprintf(out, "common %s {", common->datum.fqn); in cil_commons_to_policy()
741 fprintf(out, "%s ", DATUM(perm->data)->fqn); in cil_commons_to_policy()
758 fprintf(out, "class %s", class->datum.fqn); in cil_classes_to_policy()
760 fprintf(out, " inherits %s", class->common->datum.fqn); in cil_classes_to_policy()
766 fprintf(out, " %s", DATUM(perm->data)->fqn); in cil_classes_to_policy()
787 fprintf(out, " %s", DATUM(i3->data)->fqn); in cil_defaults_to_policy()
813 fprintf(out, " %s", DATUM(i3->data)->fqn); in cil_default_ranges_to_policy()
871 fprintf(out, "sensitivity %s", sens->datum.fqn); in cil_sensitivities_to_policy()
879 fprintf(out, " %s", alias->datum.fqn); in cil_sensitivities_to_policy()
898 fprintf(out, " %s", sens->datum.fqn); in cil_dominance_to_policy()
926 fprintf(out, "category %s",cat->datum.fqn); in cil_categories_to_policy()
934 fprintf(out, " %s", alias->datum.fqn); in cil_categories_to_policy()
954 fprintf(out, "level %s:",sens->datum.fqn); in cil_levels_to_policy()
959 fprintf(out, "level %s;\n",sens->datum.fqn); in cil_levels_to_policy()
1001 fprintf(out, "%s %s %s;\n", kind, class->datum.fqn, expr_str); in cil_validatetrans_to_policy()
1017 fprintf(out, "bool %s %s;\n", bool->datum.fqn, value); in cil_bools_to_policy()
1045 fprintf(out, "typealias %s alias", type->datum.fqn); in cil_typealiases_to_policy()
1051 fprintf(out, " %s", alias->datum.fqn); in cil_typealiases_to_policy()
1072 fprintf(out, "typebounds %s %s;\n", parent->datum.fqn, child->datum.fqn); in cil_typebounds_to_policy()
1092 fprintf(out, "typeattribute %s %s", type->datum.fqn, attribute->datum.fqn); in cil_typeattributes_to_policy()
1095 fprintf(out, ", %s", attribute->datum.fqn); in cil_typeattributes_to_policy()
1119 fprintf(out, "%s %s {", DATUM(permx->obj)->fqn, kind); in cil_xperms_to_policy()
1181 fprintf(out, "%s %s %s : ", kind, src->fqn, tgt->fqn); in cil_av_rulex_to_policy()
1218 fprintf(out, "%s %s %s : %s;\n", kind, src->fqn, tgt->fqn, cp_str); in cil_av_rule_to_policy()
1252 fprintf(out, "%s %s %s : %s %s;\n", kind, src->fqn, tgt->fqn, DATUM(i1->data)->fqn, res->fqn); in cil_type_rule_to_policy()
1271 …pe_transition %s %s : %s %s \"%s\";\n", src->fqn, tgt->fqn, DATUM(i1->data)->fqn, res->fqn, name->… in cil_nametypetransition_to_policy()
1287 fprintf(out, "range_transition %s %s : %s ", src->fqn, exec->fqn, DATUM(i1->data)->fqn); in cil_rangetransition_to_policy()
1296 fprintf(out, "permissive %s;\n", DATUM(rule->type)->fqn); in cil_typepermissive_to_policy()
1487 if (strcmp(role->datum.fqn,"object_r") == 0) in cil_roles_to_policy()
1489 fprintf(out, "role %s;\n", role->datum.fqn); in cil_roles_to_policy()
1502 if (strcmp(role->datum.fqn,"object_r") == 0) in cil_role_types_to_policy()
1509 fprintf(out, "role %s types { %s", role->datum.fqn, type->datum.fqn); in cil_role_types_to_policy()
1512 fprintf(out, " %s", type->datum.fqn); in cil_role_types_to_policy()
1534 if (strcmp(role->datum.fqn,"object_r") == 0) in cil_roleattributes_to_policy()
1540 fprintf(out, "roleattribute %s %s", role->datum.fqn, attribute->datum.fqn); in cil_roleattributes_to_policy()
1543 fprintf(out, ", %s", attribute->datum.fqn); in cil_roleattributes_to_policy()
1561 fprintf(out, "allow %s %s;\n", DATUM(allow->src)->fqn, DATUM(allow->tgt)->fqn); in cil_roleallows_to_policy()
1576 …%s %s : %s %s;\n", DATUM(trans->src)->fqn, DATUM(trans->tgt)->fqn, DATUM(i2->data)->fqn, DATUM(tra… in cil_roletransitions_to_policy()
1593 fprintf(out, "user %s",user->datum.fqn); in cil_users_to_policy()
1611 fprintf(out, " %s", role->datum.fqn); in cil_users_to_policy()
1664 fprintf(out, "sid %s ", sid->datum.fqn); in cil_sid_contexts_to_policy()