RUN_INIT(8)

πŸ“¦
version 3.11 Β· 2 versions
, in debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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. βœ¨πŸ‘‘πŸ’œ