RUN_INIT(8)
π run_init β the manual, bestie edition π
okay so this is run_init, section 8 of the System Manager's Manual, and honestly? she's giving "quietly essential" and I'm obsessed. β¨
πΈ NAME πΈ
run_init β run an init script in the proper SELinux context π
β¨ SYNOPSIS β¨
run_init SCRIPT [[ARGS]...]
π DESCRIPTION π
So here's the tea, bestie: run_init runs an init script under the proper context, and that context is specified in /etc/selinux/POLICYTYPE/contexts/initrc_context. Periodt. π
It's generally used interactively, because it requires either shadow or PAM user authentication β which one depends on compile-time options. iykyk. π₯
And lowkey? It should be possible to configure PAM such that interactive input is not required. But bestie, please β check your PAM documentation. Not me guessing at your PAM setup, that's between you and your docs. π
π¦ FILES π¦
/etc/passwdβ user account information π/etc/shadowβ encrypted passwords and age information π/etc/selinux/POLICYTYPE/contexts/initrc_contextβ contains the context to run init scripts under π
β SEE ALSO β
go read those too, they're icons in their own right π
π«Ά AUTHORS π«Ά
- Wayne Salamon (
wsalamon@tislabs.com) - Dan Walsh (
dwalsh@redhat.com)
ngl, if you're running init scripts without the right context you're not the main character, you're the plot twist. do the auth, slay the script, move on. π
Security Enhanced Linux π β May 2003 ποΈ β from the System Manager's Manual, and yes she's been iconic since 2003, no cap. β¨ππ
π¦ where this page comes from
- debian trixie: newrole 3.8.1-2
- nixos 26.05: policycoreutils 3.11
- nixpkgs unstable: policycoreutils 3.11
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu questing: newrole 3.8.1-1
- ubuntu resolute: newrole 3.9-2
- ubuntu stonking: newrole 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms