Lines Matching refs:argv
10 int main(int argc, char *argv[])
19 printf("usage: %s policy oldcontext newcontext tclass taskcontext\n", argv[0]);
23 fp = fopen(argv[1], "r");
25 fprintf(stderr, "Can't open policy %s: %s\n", argv[1], strerror(errno));
29 fprintf(stderr, "Error while processing policy %s: %s\n", argv[1], strerror(errno));
35 if (sepol_context_to_sid(argv[2], strlen(argv[2]), &oldsid) < 0) {
36 fprintf(stderr, "Invalid old context %s\n", argv[2]);
40 if (sepol_context_to_sid(argv[3], strlen(argv[3]), &newsid) < 0) {
41 fprintf(stderr, "Invalid new context %s\n", argv[3]);
45 if (sepol_string_to_security_class(argv[4], &tclass) < 0) {
46 fprintf(stderr, "Invalid security class %s\n", argv[4]);
50 if (sepol_context_to_sid(argv[5], strlen(argv[5]), &tasksid) < 0) {
51 fprintf(stderr, "Invalid task context %s\n", argv[5]);