Lines Matching refs:fprintf
35 fprintf(stderr, "%s: out of memory\n", progname);
57 fprintf(stderr, "Could not open %s for writing: %s\n",
77 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n");
78 fprintf(fout, "#ifndef _SELINUX_FLASK_H_\n#define _SELINUX_FLASK_H_\n\n");
82 fprintf(fout, "#define SECCLASS_%-39s %2d\n", map->name, i+1);
85 fprintf(fout, "\n");
90 fprintf(fout, "#define SECINITSID_%-39s %2d\n", s, i);
92 fprintf(fout, "\n#define SECINITSID_NUM %d\n", i-1);
93 fprintf(fout, "\nstatic inline bool security_is_socket_class(u16 kern_tclass)\n");
94 fprintf(fout, "{\n");
95 fprintf(fout, "\tbool sock = false;\n\n");
96 fprintf(fout, "\tswitch (kern_tclass) {\n");
102 fprintf(fout, "\tcase SECCLASS_%s:\n", map->name);
104 fprintf(fout, "\t\tsock = true;\n");
105 fprintf(fout, "\t\tbreak;\n");
106 fprintf(fout, "\tdefault:\n");
107 fprintf(fout, "\t\tbreak;\n");
108 fprintf(fout, "\t}\n\n");
109 fprintf(fout, "\treturn sock;\n");
110 fprintf(fout, "}\n");
112 fprintf(fout, "\n#endif\n");
117 fprintf(stderr, "Could not open %s for writing: %s\n",
122 fprintf(fout, "/* This file is automatically generated. Do not edit. */\n");
123 fprintf(fout, "#ifndef _SELINUX_AV_PERMISSIONS_H_\n#define _SELINUX_AV_PERMISSIONS_H_\n\n");
130 fprintf(stderr, "Too many permissions to fit into an access vector at (%s, %s).\n",
134 fprintf(fout, "#define %s__%-*s 0x%08xU\n", map->name,
139 fprintf(fout, "\n#endif\n");