Lines Matching refs:fprintf

77 	fprintf(fp, "{");
80 fprintf(fp, "%s ", perm);
81 fprintf(fp, "}");
89 fprintf(fp, "{");
94 fprintf(fp, " %s", perm);
97 fprintf(fp, " }");
108 fprintf(fp, " [%s%s]", prefix, id);
110 fprintf(fp, " %s%s", prefix, id);
120 fprintf(fp, " * ");
123 fprintf(fp, " ~");
152 fprintf(fp, "{");
169 fprintf(fp, " self");
173 fprintf(fp, " }");
183 fprintf(fp, " * ");
186 fprintf(fp, " ~");
195 fprintf(fp, "{");
207 fprintf(fp, " }");
220 fprintf(fp, " <empty>\n");
225 fprintf(fp, " allow");
228 fprintf(fp, " auditallow ");
231 fprintf(fp, " dontaudit");
235 fprintf(fp, " type_transition");
238 fprintf(fp, " type_member");
241 fprintf(fp, " type_change");
244 fprintf(fp, " neverallow");
247 fprintf(fp, "allowxperm ");
249 fprintf(fp, "auditallowxperm ");
251 fprintf(fp, "dontauditxperm ");
253 fprintf(fp, " ERROR: no valid rule type specified\n");
263 fprintf(fp, " :");
274 fprintf(fp, " {");
283 fprintf(fp, " }");
284 fprintf(fp, " ");
300 fprintf(fp, " ERROR: no valid xperms specified\n");
308 fprintf(fp, "%s", sepol_extended_perms_to_string(&xperms));
311 fprintf(fp, ";\n");
327 fprintf(fp, " [%d]: ", type->s.value);
332 fprintf(fp, " %s [%d]: ", (char *)key, type->s.value);
335 fprintf(fp, "attribute for types");
343 fprintf(fp, ",");
348 fprintf(fp, "type");
350 fprintf(fp, "alias for type");
353 fprintf(fp, " flags:%x\n", type->flags);
371 fprintf(fp, ":");
379 fprintf(fp, "\n");
390 fprintf(fp, " : %d\n", p->bool_val_to_struct[i]->state);
402 fprintf(fp, "%s ",
406 fprintf(fp, "! ");
409 fprintf(fp, "|| ");
412 fprintf(fp, "&& ");
415 fprintf(fp, "^ ");
418 fprintf(fp, "== ");
421 fprintf(fp, "!= ");
424 fprintf(fp, "error!");
434 fprintf(fp, "Sorry, not implemented\n");
442 fprintf(fp, "Initial SIDs:\n");
447 fprintf(fp, "\tsid %d, context %s:%s:%s\n",
451 fprintf(fp, "Policy Initial SIDs:\n");
456 fprintf(fp, "\t%s: sid %d, context %s:%s:%s\n",
471 fprintf(fp, "{");
482 fprintf(fp, " }");
488 fprintf(fp, "role transition ");
491 fprintf(fp, " :");
494 fprintf(fp, "\n");
501 fprintf(fp, "role allow ");
504 fprintf(fp, "\n");
510 fprintf(fp, "filename transition");
516 fprintf(fp, " %s\n", tr->name);
529 fprintf(fp, "role:");
531 fprintf(fp, " types: ");
533 fprintf(fp, "\n");
544 fprintf(out_fp, "%s:", symbol_labels[i]);
549 fprintf(out_fp, " %s",
558 fprintf(out_fp,
565 fprintf(out_fp, " <empty>");
567 fprintf(out_fp, "\n");
578 fprintf(fp, "expression: ");
580 fprintf(fp, "current state: %d\n", cur->cur_state);
581 fprintf(fp, "True list:\n");
584 fprintf(fp, "\t");
588 fprintf(fp, "False list:\n");
591 fprintf(fp, "\t");
605 fprintf(fp, "Could not find bool %s\n", name);
617 fprintf(out_fp, "decl %u:%s\n", decl->decl_id,
624 fprintf(out_fp, "expression: ");
626 fprintf(out_fp, "current state: %d\n",
628 fprintf(out_fp, "True list:\n");
635 fprintf(out_fp, "False list:\n");
649 fprintf(out_fp, " <empty>\n");
701 fprintf(out_fp, "--- begin avrule block ---\n");
716 fprintf(out_fp, "Allow unknown classes and perms\n");
718 fprintf(out_fp, "Deny unknown classes and perms\n");
720 fprintf(out_fp, "Reject unknown classes and perms\n");
732 fprintf(stderr, "Can't open '%s': %s\n",
744 fprintf(stderr, "Could not read from policy.\n");
751 fprintf(stderr, "%s: Out of memory!\n", __FUNCTION__);
764 fprintf(stderr, "%s: Out of memory!\n", __FUNCTION__);
785 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__,
796 fprintf(out_fp, "Reading module...\n");
798 fprintf(stderr,
804 fprintf(stderr, "This file is not a loadable policy module.\n");
809 fprintf(stderr, "Could not index module.\n");
828 fprintf(fp, "policy capabilities:\n");
835 fprintf(fp, "\t%s\n", capname);
875 fprintf(out_fp, "Reading policy...\n");
877 fprintf(stderr, "%s: Out of memory!\n", __FUNCTION__);
881 fprintf(stderr,
889 fprintf(stderr,
895 fprintf(stderr, "Error indexing classes\n");
900 fprintf(stderr, "Error indexing others\n");
917 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__,
925 fprintf(out_fp, "unconditional avtab:\n");
930 fprintf(out_fp, "conditional avtab:\n");
948 fprintf(stderr, "Error displaying types\n");
953 fprintf(out_fp, "role transitions:\n");
958 fprintf(out_fp, "role allows:\n");
969 fprintf(out_fp, "avrule block requirements:\n");
974 fprintf(out_fp, "avrule block declarations:\n");
989 fprintf(stderr, "fgets failed at line %d: %s\n", __LINE__,
997 fprintf(stderr, "Cannot open output file %s\n",
1005 fprintf(out_fp, "filename_trans rules:\n");