Lines Matching full:fprintf
78 fprintf(fp, "{");
81 fprintf(fp, "%s ", perm);
82 fprintf(fp, "}");
90 fprintf(fp, "{");
95 fprintf(fp, " %s", perm);
98 fprintf(fp, " }");
109 fprintf(fp, " [%s%s]", prefix, id);
111 fprintf(fp, " %s%s", prefix, id);
121 fprintf(fp, " * ");
124 fprintf(fp, " ~");
153 fprintf(fp, "{");
170 fprintf(fp, " self");
174 fprintf(fp, " }");
184 fprintf(fp, " * ");
187 fprintf(fp, " ~");
196 fprintf(fp, "{");
208 fprintf(fp, " }");
221 fprintf(fp, " <empty>\n");
226 fprintf(fp, " allow");
229 fprintf(fp, " auditallow ");
232 fprintf(fp, " dontaudit");
236 fprintf(fp, " type_transition");
239 fprintf(fp, " type_member");
242 fprintf(fp, " type_change");
245 fprintf(fp, " neverallow");
247 fprintf(fp, " ERROR: no valid rule type specified\n");
257 fprintf(fp, " :");
268 fprintf(fp, " {");
277 fprintf(fp, " }");
278 fprintf(fp, " ");
287 fprintf(fp, ";\n");
303 fprintf(fp, " [%d]: ", type->s.value);
308 fprintf(fp, " %s [%d]: ", (char *)key, type->s.value);
311 fprintf(fp, "attribute for types");
319 fprintf(fp, ",");
324 fprintf(fp, "type");
326 fprintf(fp, "alias for type");
329 fprintf(fp, " flags:%x\n", type->flags);
347 fprintf(fp, ":");
355 fprintf(fp, "\n");
366 fprintf(fp, " : %d\n", p->bool_val_to_struct[i]->state);
378 fprintf(fp, "%s ",
382 fprintf(fp, "! ");
385 fprintf(fp, "|| ");
388 fprintf(fp, "&& ");
391 fprintf(fp, "^ ");
394 fprintf(fp, "== ");
397 fprintf(fp, "!= ");
400 fprintf(fp, "error!");
410 fprintf(fp, "Sorry, not implemented\n");
418 fprintf(fp, "Initial SIDs:\n");
423 fprintf(fp, "\t%s: sid %d, context %s:%s:%s\n",
427 fprintf(fp, "Policy Initial SIDs:\n");
432 fprintf(fp, "\t%s: sid %d, context %s:%s:%s\n",
447 fprintf(fp, "{");
458 fprintf(fp, " }");
464 fprintf(fp, "role transition ");
467 fprintf(fp, " :");
470 fprintf(fp, "\n");
477 fprintf(fp, "role allow ");
480 fprintf(fp, "\n");
486 fprintf(fp, "filename transition");
492 fprintf(fp, " %s\n", tr->name);
505 fprintf(fp, "role:");
507 fprintf(fp, " types: ");
509 fprintf(fp, "\n");
520 fprintf(out_fp, "%s:", symbol_labels[i]);
525 fprintf(out_fp, " %s",
534 fprintf(out_fp,
541 fprintf(out_fp, " <empty>");
543 fprintf(out_fp, "\n");
554 fprintf(fp, "expression: ");
556 fprintf(fp, "current state: %d\n", cur->cur_state);
557 fprintf(fp, "True list:\n");
560 fprintf(fp, "\t");
564 fprintf(fp, "False list:\n");
567 fprintf(fp, "\t");
581 fprintf(fp, "Could not find bool %s\n", name);
593 fprintf(out_fp, "decl %u:%s\n", decl->decl_id,
600 fprintf(out_fp, "expression: ");
602 fprintf(out_fp, "current state: %d\n",
604 fprintf(out_fp, "True list:\n");
611 fprintf(out_fp, "False list:\n");
625 fprintf(out_fp, " <empty>\n");
676 fprintf(out_fp, "--- begin avrule block ---\n");
692 fprintf(out_fp, "Allow unknown classes and perms\n");
694 fprintf(out_fp, "Deny unknown classes and perms\n");
696 fprintf(out_fp, "Reject unknown classes and perms\n");
708 fprintf(stderr, "Can't open '%s': %s\n",
720 fprintf(stderr, "Could not read from policy.\n");
727 fprintf(stderr, "%s: Out of memory!\n", __FUNCTION__);
738 fprintf(stderr, "%s: Out of memory!\n", __FUNCTION__);
765 fprintf(out_fp, "Reading module...\n");
767 fprintf(stderr,
773 fprintf(stderr, "This file is not a loadable policy module.\n");
778 fprintf(stderr, "Could not index module.\n");
797 fprintf(fp, "policy capabilities:\n");
805 fprintf(fp, "\t%s\n", capname);
846 fprintf(out_fp, "Reading policy...\n");
849 fprintf(stderr,
857 fprintf(stderr,
863 fprintf(stderr, "Error indexing classes\n");
868 fprintf(stderr, "Error indexing others\n");
888 fprintf(out_fp, "unconditional avtab:\n");
893 fprintf(out_fp, "conditional avtab:\n");
911 fprintf(stderr, "Error displaying types\n");
916 fprintf(out_fp, "role transitions:\n");
921 fprintf(out_fp, "role allows:\n");
932 fprintf(out_fp, "avrule block requirements:\n");
937 fprintf(out_fp, "avrule block declarations:\n");
956 fprintf(stderr, "Cannot open output file %s\n",
964 fprintf(out_fp, "filename_trans rules:\n");