OS Manuals

/usr/bin/runcon

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running runcon --help (exit 0). permalink

Run command with specified security context under SELinux enabled systems.

Usage: runcon CONTEXT COMMAND [ARG...]
       runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG...]

Arguments:
  [ARG]...

Options:
  -c, --compute        Compute process transition context before modifying.
  -u, --user <USER>    Set user USER in the target security context.
  -r, --role <ROLE>    Set role ROLE in the target security context.
  -t, --type <TYPE>    Set type TYPE in the target security context.
  -l, --range <RANGE>  Set range RANGE in the target security context.
  -h, --help           Print help
  -V, --version        Print version

Run COMMAND with completely-specified CONTEXT, or with current or transitioned security context
modified by one or more of LEVEL, ROLE, TYPE, and USER.

If none of --compute, --type, --user, --role or --range is specified, then the first argument is
used as the complete context.

Note that only carefully-chosen contexts are likely to successfully run.

If neither CONTEXT nor COMMAND is specified, the current security context is printed.
Options (7)
OptionDescriptionSource
-c, --computeCompute process transition context before modifying.help + man
-u, --user USERSet user USER in the target security context.help + man
-r, --role ROLESet role ROLE in the target security context.help + man
-t, --type TYPESet type TYPE in the target security context.help + man
-l, --range RANGESet range RANGE in the target security context.help + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.