Lines Matching refs:fprintf

49 	fprintf(fp, "{");  in render_access_mask()
52 fprintf(fp, "%s ", perm); in render_access_mask()
53 fprintf(fp, "}"); in render_access_mask()
69 fprintf(fp, "{ "); in render_operations()
88 fprintf(fp, "0x%hx-0x%hx ", low_value, value); in render_operations()
90 fprintf(fp, "0x%hx ", value); in render_operations()
95 fprintf(fp, "0x%hx-0x%hx ", low_value, (uint16_t) (value|0xff)); in render_operations()
97 fprintf(fp, "0x%hx-0x%hx ", value, (uint16_t) (value|0xff)); in render_operations()
103 fprintf(fp, "}"); in render_operations()
109 fprintf(fp, "%s", p->p_type_val_to_name[type - 1]); in render_type()
120 fprintf(fp, "%s %s : %s ", stype, ttype, tclass); in render_key()
122 fprintf(fp, "%s %u : %s ", stype, key->target_type, tclass); in render_key()
124 fprintf(fp, "%u %s : %s ", key->source_type, ttype, tclass); in render_key()
126 fprintf(fp, "%u %u : %s ", key->source_type, key->target_type, in render_key()
155 fprintf(fp, "[enabled] "); in render_av_rule()
157 fprintf(fp, "[disabled] "); in render_av_rule()
162 fprintf(fp, "allow "); in render_av_rule()
165 fprintf(fp, ";\n"); in render_av_rule()
168 fprintf(fp, "auditallow "); in render_av_rule()
171 fprintf(fp, ";\n"); in render_av_rule()
174 fprintf(fp, "dontaudit "); in render_av_rule()
179 fprintf(fp, ";\n"); in render_av_rule()
183 fprintf(fp, "type_transition "); in render_av_rule()
186 fprintf(fp, ";\n"); in render_av_rule()
189 fprintf(fp, "type_member "); in render_av_rule()
192 fprintf(fp, ";\n"); in render_av_rule()
195 fprintf(fp, "type_change "); in render_av_rule()
198 fprintf(fp, ";\n"); in render_av_rule()
202 fprintf(fp, "allow "); in render_av_rule()
204 fprintf(fp, "auditallow "); in render_av_rule()
206 fprintf(fp, "dontaudit "); in render_av_rule()
209 fprintf(fp, ";\n"); in render_av_rule()
211 fprintf(fp, " ERROR: no valid rule type specified\n"); in render_av_rule()
228 fprintf(fp, "\n"); in display_avtab()
237 fprintf(fp, "%s : %d\n", p->p_bool_val_to_name[i], in display_bools()
250 fprintf(fp, "%s ", in display_expr()
254 fprintf(fp, "! "); in display_expr()
257 fprintf(fp, "|| "); in display_expr()
260 fprintf(fp, "&& "); in display_expr()
263 fprintf(fp, "^ "); in display_expr()
266 fprintf(fp, "== "); in display_expr()
269 fprintf(fp, "!= "); in display_expr()
272 fprintf(fp, "error!"); in display_expr()
284 fprintf(fp, "expression: "); in display_cond_expressions()
286 fprintf(fp, "current state: %d\n", cur->cur_state); in display_cond_expressions()
287 fprintf(fp, "True list:\n"); in display_cond_expressions()
289 fprintf(fp, "\t"); in display_cond_expressions()
293 fprintf(fp, "False list:\n"); in display_cond_expressions()
295 fprintf(fp, "\t"); in display_cond_expressions()
306 fprintf(out_fp, "Allow unknown classes and permisions\n"); in display_handle_unknown()
308 fprintf(out_fp, "Deny unknown classes and permisions\n"); in display_handle_unknown()
310 fprintf(out_fp, "Reject unknown classes and permisions\n"); in display_handle_unknown()
320 fprintf(fp, "Could not find bool %s\n", name); in change_bool()
335 fprintf(fp, "policy capabilities:\n"); in display_policycaps()
343 fprintf(fp, "\t%s\n", capname); in display_policycaps()
352 fprintf(fp, " %s%s", prefix, id); in display_id()
360 fprintf(fp, "permissive sids:\n"); in display_permissive()
363 fprintf(fp, "\t"); in display_permissive()
365 fprintf(fp, "\n"); in display_permissive()
374 fprintf(fp, "role_trans rules:\n"); in display_role_trans()
380 fprintf(fp, "\n"); in display_role_trans()
388 fprintf(fp, "filename_trans rules:\n"); in display_filename_trans()
394 fprintf(fp, " %s\n", ft->name); in display_filename_trans()
437 fprintf(stderr, "Can't open '%s': %s\n", in main()
442 fprintf(stderr, "Can't stat '%s': %s\n", in main()
449 fprintf(stderr, "Can't map '%s': %s\n", in main()
455 fprintf(out_fp, "Reading policy...\n"); in main()
461 fprintf(stderr, "%s: Out of memory!\n", argv[0]); in main()
466 fprintf(stderr, in main()
472 fprintf(stdout, "binary policy file loaded\n\n"); in main()
479 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__, in main()
510 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__, in main()
518 fprintf(stderr, "couldn't malloc string.\n"); in main()
525 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__, in main()
556 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__, in main()
564 fprintf(stderr, "Cannot open output file %s\n", in main()