Lines Matching refs:out_fp

540 			       FILE * out_fp)  in display_scope_index()  argument
545 fprintf(out_fp, "%s:", symbol_labels[i]); in display_scope_index()
550 fprintf(out_fp, " %s", in display_scope_index()
557 p, out_fp); in display_scope_index()
559 fprintf(out_fp, in display_scope_index()
566 fprintf(out_fp, " <empty>"); in display_scope_index()
568 fprintf(out_fp, "\n"); in display_scope_index()
616 policydb_t * policy, FILE * out_fp) in display_avdecl() argument
618 fprintf(out_fp, "decl %u:%s\n", decl->decl_id, in display_avdecl()
625 fprintf(out_fp, "expression: "); in display_avdecl()
626 display_expr(&policydb, cond->expr, out_fp); in display_avdecl()
627 fprintf(out_fp, "current state: %d\n", in display_avdecl()
629 fprintf(out_fp, "True list:\n"); in display_avdecl()
633 &policydb, out_fp); in display_avdecl()
636 fprintf(out_fp, "False list:\n"); in display_avdecl()
640 &policydb, out_fp); in display_avdecl()
650 fprintf(out_fp, " <empty>\n"); in display_avdecl()
653 if (display_avrule(avrule, policy, out_fp)) in display_avdecl()
663 display_role_trans(decl->role_tr_rules, policy, out_fp); in display_avdecl()
668 out_fp); in display_avdecl()
673 (&decl->required, policy, out_fp)) { in display_avdecl()
680 (&decl->declared, policy, out_fp)) { in display_avdecl()
687 out_fp); in display_avdecl()
697 FILE * out_fp) in display_avblock() argument
701 fprintf(out_fp, "--- begin avrule block ---\n"); in display_avblock()
704 if (display_avdecl(decl, field, policy, out_fp)) { in display_avblock()
714 int display_handle_unknown(policydb_t * p, FILE * out_fp) in display_handle_unknown() argument
717 fprintf(out_fp, "Allow unknown classes and perms\n"); in display_handle_unknown()
719 fprintf(out_fp, "Deny unknown classes and perms\n"); in display_handle_unknown()
721 fprintf(out_fp, "Reject unknown classes and perms\n"); in display_handle_unknown()
772 static void link_module(policydb_t * base, FILE * out_fp) in link_module() argument
795 fprintf(out_fp, "Reading module...\n"); in link_module()
869 FILE *out_fp = stdout; in main() local
876 fprintf(out_fp, "Reading policy...\n"); in main()
926 fprintf(out_fp, "unconditional avtab:\n"); in main()
928 &policydb, out_fp); in main()
931 fprintf(out_fp, "conditional avtab:\n"); in main()
933 &policydb, out_fp); in main()
936 display_users(&policydb, out_fp); in main()
939 display_bools(&policydb, out_fp); in main()
944 out_fp)) in main()
948 if (display_types(&policydb, out_fp)) { in main()
954 fprintf(out_fp, "role transitions:\n"); in main()
956 &policydb, out_fp); in main()
959 fprintf(out_fp, "role allows:\n"); in main()
961 &policydb, out_fp); in main()
964 display_policycon(out_fp); in main()
967 display_initial_sids(&policydb, out_fp); in main()
970 fprintf(out_fp, "avrule block requirements:\n"); in main()
972 &policydb, out_fp); in main()
975 fprintf(out_fp, "avrule block declarations:\n"); in main()
977 &policydb, out_fp); in main()
980 display_policycaps(&policydb, out_fp); in main()
984 display_handle_unknown(&policydb, out_fp); in main()
996 out_fp = stdout; in main()
997 else if ((out_fp = fopen(OutfileName, "w")) == NULL) { in main()
1000 out_fp = stdout; in main()
1002 if (out_fp != stdout) in main()
1006 fprintf(out_fp, "filename_trans rules:\n"); in main()
1008 &policydb, out_fp); in main()
1011 link_module(&policydb, out_fp); in main()