| 67 | }; |
| 68 | |
| 69 | void |
| 70 | usage (int status) |
| 71 | { |
| 72 | if (status != EXIT_SUCCESS) |
| 73 | emit_try_help (); |
| 74 | else |
| 75 | { |
| 76 | printf (_("\ |
| 77 | Usage: %s [CONTEXT COMMAND [ARG]...]\n\ |
| 78 | or: %s [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG]...\n\ |
| 79 | "), program_name, program_name); |
| 80 | fputs (_("\ |
| 81 | Run a program in a different SELinux security context.\n\ |
| 82 | With neither CONTEXT nor COMMAND, print the current security context.\n\ |
| 83 | "), stdout); |
| 84 | |
| 85 | emit_mandatory_arg_note (); |
| 86 | |
| 87 | fputs (_("\ |
| 88 | CONTEXT Complete security context\n\ |
| 89 | "), stdout); |
| 90 | oputs (_("\ |
| 91 | -c, --compute compute process transition context before modifying\n\ |
| 92 | ")); |
| 93 | oputs (_("\ |
| 94 | -t, --type=TYPE type (for same role as parent)\n\ |
| 95 | ")); |
| 96 | oputs (_("\ |
| 97 | -u, --user=USER user identity\n\ |
| 98 | ")); |
| 99 | oputs (_("\ |
| 100 | -r, --role=ROLE role\n\ |
| 101 | ")); |
| 102 | oputs (_("\ |
| 103 | -l, --range=RANGE levelrange\n\ |
| 104 | ")); |
| 105 | oputs (HELP_OPTION_DESCRIPTION); |
| 106 | oputs (VERSION_OPTION_DESCRIPTION); |
| 107 | emit_exec_status (PROGRAM_NAME); |
| 108 | emit_ancillary_info (PROGRAM_NAME); |
| 109 | } |
| 110 | exit (status); |
| 111 | } |
| 112 | |
| 113 | int |
| 114 | main (int argc, char **argv) |
no test coverage detected