RUNCON(1)

πŸ’– RUNCON(1) β€” the runcon glow-up πŸ’–

okay so bestie, welcome to runcon, the General Commands Manual girlie who runs your command with a specified security context on SELinux-enabled systems. she's niche, she's powerful, she's giving main character energy in a very specific way ✨


🌸 NAME 🌸

runcon β€” run a command with a specified security context on SELinux-enabled systems. no cap, that's literally her whole thing πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Run a command with a specified security context, but ONLY on systems where SELinux is enabled. that's the vibe, that's the whole assignment 🫢


✨ OPTIONS ✨

  • -c, --compute β€” Compute the process transition context before modifying. like, do the math first, queen πŸ”₯
  • -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. your friendly little lifeline πŸ’–
  • -V, --version β€” Print version. who are you, runcon? a legend, that's who.
  • [ARG] β€” an argument. yes, just an argument. she's flexible like that πŸ™ˆ

πŸ’œ EXTRA πŸ’œ

Run COMMAND with a completely-specified CONTEXT, OR with the current-or-transitioned security context modified by one or more of LEVEL, ROLE, TYPE, and USER. mix and match, it's giving customize-your-own-adventure 🌈

Also β€” the page says LEVEL here, so we're keeping LEVEL here. copy the queen's homework exactly, bestie.

If NONE of --compute, --type, --user, --role or --range is specified, then the first argument is used as the complete context. that's the rule, no exceptions ⭐

⚠️ real talk: only carefully-chosen contexts are likely to successfully run. this is NOT a "just yolo it" situation, bestie. it's giving delicate. it's giving precision. it's giving πŸ’€ if you guess.

And if NEITHER CONTEXT NOR COMMAND is specified? then the current security context gets printed. cute little mirror moment πŸ’…


πŸ“¦ VERSION πŸ“¦

v(uutils coreutils) 0.12.0


🌟 EXAMPLES 🌟

Print the security context of your current execution context:

runcon

Specify the domain to run a command in:

runcon [-t|--type] domain_t command

Specify the context role to run a command with:

runcon [-r|--role] role_r command

Specify the full context to run a command with:

runcon user_u:role_r:domain_t command
🫢 these examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. and like, fair warning bestie β€” uutils is a work in progress, so some examples might just… fail on you 😭 not me being honest. it's character development.

okay that's the whole page!! 🌸 manual RUNCON(1), dated 2026-09-25, from the General Commands Manual source β€” mwah, slay, go run some contexts responsibly, periodt πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from