Lines Matching refs:out_fp
515 FILE * out_fp) in display_scope_index() argument
520 fprintf(out_fp, "%s:", symbol_labels[i]); in display_scope_index()
525 fprintf(out_fp, " %s", in display_scope_index()
532 p, out_fp); in display_scope_index()
534 fprintf(out_fp, in display_scope_index()
541 fprintf(out_fp, " <empty>"); in display_scope_index()
543 fprintf(out_fp, "\n"); in display_scope_index()
591 policydb_t * policy, FILE * out_fp) in display_avdecl() argument
593 fprintf(out_fp, "decl %u:%s\n", decl->decl_id, in display_avdecl()
600 fprintf(out_fp, "expression: "); in display_avdecl()
601 display_expr(&policydb, cond->expr, out_fp); in display_avdecl()
602 fprintf(out_fp, "current state: %d\n", in display_avdecl()
604 fprintf(out_fp, "True list:\n"); in display_avdecl()
608 &policydb, out_fp); in display_avdecl()
611 fprintf(out_fp, "False list:\n"); in display_avdecl()
615 &policydb, out_fp); in display_avdecl()
625 fprintf(out_fp, " <empty>\n"); in display_avdecl()
628 if (display_avrule(avrule, policy, out_fp)) in display_avdecl()
638 display_role_trans(decl->role_tr_rules, policy, out_fp); in display_avdecl()
643 out_fp); in display_avdecl()
648 (&decl->required, policy, out_fp)) { in display_avdecl()
655 (&decl->declared, policy, out_fp)) { in display_avdecl()
662 out_fp); in display_avdecl()
672 FILE * out_fp) in display_avblock() argument
676 fprintf(out_fp, "--- begin avrule block ---\n"); in display_avblock()
679 if (display_avdecl(decl, field, policy, out_fp)) { in display_avblock()
689 int display_handle_unknown(policydb_t * p, FILE * out_fp) in display_handle_unknown() argument
692 fprintf(out_fp, "Allow unknown classes and perms\n"); in display_handle_unknown()
694 fprintf(out_fp, "Deny unknown classes and perms\n"); in display_handle_unknown()
696 fprintf(out_fp, "Reject unknown classes and perms\n"); in display_handle_unknown()
747 static void link_module(policydb_t * base, FILE * out_fp) in link_module() argument
765 fprintf(out_fp, "Reading module...\n"); in link_module()
839 FILE *out_fp = stdout; in main() local
846 fprintf(out_fp, "Reading policy...\n"); in main()
888 fprintf(out_fp, "unconditional avtab:\n"); in main()
890 &policydb, out_fp); in main()
893 fprintf(out_fp, "conditional avtab:\n"); in main()
895 &policydb, out_fp); in main()
898 display_users(&policydb, out_fp); in main()
901 display_bools(&policydb, out_fp); in main()
906 out_fp)) in main()
910 if (display_types(&policydb, out_fp)) { in main()
916 fprintf(out_fp, "role transitions:\n"); in main()
918 &policydb, out_fp); in main()
921 fprintf(out_fp, "role allows:\n"); in main()
923 &policydb, out_fp); in main()
926 display_policycon(out_fp); in main()
929 display_initial_sids(&policydb, out_fp); in main()
932 fprintf(out_fp, "avrule block requirements:\n"); in main()
934 &policydb, out_fp); in main()
937 fprintf(out_fp, "avrule block declarations:\n"); in main()
939 &policydb, out_fp); in main()
942 display_policycaps(&policydb, out_fp); in main()
946 display_handle_unknown(&policydb, out_fp); in main()
954 out_fp = stdout; in main()
955 else if ((out_fp = fopen(OutfileName, "w")) == NULL) { in main()
958 out_fp = stdout; in main()
960 if (out_fp != stdout) in main()
964 fprintf(out_fp, "filename_trans rules:\n"); in main()
966 &policydb, out_fp); in main()
969 link_module(&policydb, out_fp); in main()