MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/runcon.c:69–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69void
70usage (int status)
71{
72 if (status != EXIT_SUCCESS)
73 emit_try_help ();
74 else
75 {
76 printf (_("\
77Usage: %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 (_("\
81Run a program in a different SELinux security context.\n\
82With 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
113int
114main (int argc, char **argv)

Callers 1

mainFunction · 0.70

Calls 3

emit_mandatory_arg_noteFunction · 0.85
emit_exec_statusFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected