OS Manuals

/usr/bin/runcon

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running runcon --help (exit 0). permalink

Also provided by 1 other package version
Usage: /usr/bin/runcon [CONTEXT COMMAND [ARG]...]
  or:  /usr/bin/runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG]...
Run a program in a different SELinux security context.
With neither CONTEXT nor COMMAND, print the current security context.

Mandatory arguments to long options are mandatory for short options too.
  CONTEXT            Complete security context
  -c, --compute      compute process transition context before modifying
  -t, --type=TYPE    type (for same role as parent)
  -u, --user=USER    user identity
  -r, --role=ROLE    role
  -l, --range=RANGE  levelrange
      --help
         display this help and exit
      --version
         output version information and exit

Exit status:
  125  if the runcon command itself fails
  126  if COMMAND is found but cannot be invoked
  127  if COMMAND cannot be found
  -    the exit status of COMMAND otherwise

Report bugs to: <bug-coreutils@gnu.org>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/runcon>
or available locally via: info '(coreutils) runcon invocation'
Options (7)
OptionDescriptionSource
-c, --computecompute process transition context before modifyinghelp + man
-t, --type TYPEtype (for same role as parent)help + man
-u, --user USERuser identityhelp + man
-r, --role ROLErolehelp + man
-l, --range RANGElevelrangehelp + man
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + 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.