Home | History | Annotate | Download | only in checkpolicy

Lines Matching full:argv

147 int main(int argc, char **argv)
165 while ((ch = getopt_long(argc, argv, "ho:bVU:mMC", long_options, NULL)) != -1) {
168 usage(argv[0]);
193 usage(argv[0]);
205 usage(argv[0]);
216 fprintf(stderr, "%s: Handling of unknown classes and permissions is only valid in the base module.\n", argv[0]);
221 fprintf(stderr, "%s: -b and -m are incompatible with each other.\n", argv[0]);
226 file = argv[optind++];
228 usage(argv[0]);
230 printf("%s: loading policy configuration from %s\n", argv[0], file);
239 if (read_binary_policy(&modpolicydb, file, argv[0]) == -1) {
244 fprintf(stderr, "%s: out of memory!\n", argv[0]);
252 if (read_source_policy(&modpolicydb, file, argv[0]) == -1) {
266 fprintf(stderr, "%s: policydb_init failed\n", argv[0]);
270 fprintf(stderr, "%s: link modules failed\n", argv[0]);
274 fprintf(stderr, "%s: expand module failed\n", argv[0]);
285 printf("%s: policy configuration loaded\n", argv[0]);
297 argv[0], policyvers, file);
300 fprintf(stderr, "%s: error writing %s\n", argv[0], outfile);
304 printf("%s: writing CIL to %s\n",argv[0], outfile);
307 fprintf(stderr, "%s: error writing %s\n", argv[0], outfile);
314 fprintf(stderr, "%s: No file to write CIL was specified\n", argv[0]);