RUNCON(1)
๐ RUNCON ๐ โ the runcon(1) page, bestie edition
okay so picture this: you're on a Linux box, SELinux is running the show, and you need a command to run inside a specific security context. that's runcon. it lives in User Commands, section 1 of the manual. let's get into it ๐ซถ
โจ NAME โจ
runcon โ run command with specified security context
๐ธ SYNOPSIS ๐ธ
runcon [CONTEXT COMMAND [ARG]...]
runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG]...
๐ฆ DESCRIPTION ๐ฆ
Run COMMAND with a completely-specified CONTEXT, or with the current security context โ or a transitioned one โ that's been tweaked by one or more of LEVEL, ROLE, TYPE, and USER. it's giving "I know exactly where I belong" โจ
If none of -c, -t, -u, -r, or -l is specified, the first argument is used as the complete context. Any additional arguments after COMMAND are interpreted as arguments to the command. so like, order matters, bestie ๐
โ ๏ธ real talk: only carefully-chosen contexts are likely to run successfully. you can't just throw vibes at SELinux and hope. it WILL humble you.
Run a program in a different SELinux security context. With neither CONTEXT nor COMMAND, print the current security context. cute lil "who am I rn" moment ๐
Mandatory arguments to long options are mandatory for short options too. (say it with me now ๐ฃ)
CONTEXT : Complete security context. the whole thing, full fit, no skips ๐
๐ OPTIONS ๐
-c,--computeโ compute process transition context before modifying. do the math first, then change the outfit ๐งฎ-t,--type=TYPEโ type (for same role as parent). staying in the family role, just switching up the type โจ-u,--user=USERโ user identity. who you're being, basically ๐ชช-r,--role=ROLEโ role. main character energy, but like, a specified main character ๐-l,--range=RANGEโ levelrange. the range, the whole range, nothing but the range ๐--helpโ display this help and exit. always peek before you leap, bestie ๐--versionโ output version information and exit. for the girlies who need to know which version ate ๐
๐ฆ Exit status: ๐ฆ
125โ if therunconcommand itself fails ๐ญ126โ ifCOMMANDis found but cannot be invoked ๐127โ ifCOMMANDcannot be found ๐ต๏ธ-โ the exit status ofCOMMANDotherwise. otherwise you just inherit whatever energy the command brought ๐
๐ AUTHOR ๐
Written by Russell Coker. thank you king ๐ซถ
๐ REPORTING BUGS ๐
- 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/ - Report any translation bugs to
https://translationproject.org/team/
๐ SEE ALSO ๐
- Full documentation
https://www.gnu.org/software/coreutils/runcon - or available locally via:
info '(coreutils) runcon invocation'
and that's the whole page, no cap โจ
packaged by Ubuntu (9.10-1ubuntu2) โ shoutout to the packagers, iconic behavior ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (read it again, bestie โ no warranty fr fr ๐ซฃ)
GNU coreutils 9.10 ยท August 2026 ยท RUNCON(1) โ okay bye ily, go run something in a context that slays ๐ฆ๐
๐ฆ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms