setenforce(8)

πŸ’… setenforce β€” the setenforce(8) glow-up

okay bestie, so you found yourself in the SELinux Command Line documentation section of the manual, page setenforce(8), and you're like "what does this lil guy even do??" πŸ¦‹

Short answer: it flips the mode SELinux is running in. That's it. That's the whole job. Iconic minimalism, honestly. ✨


✨ SYNOPSIS ✨

setenforce [Enforcing|Permissive|1|0]

like, you give it ONE thing, and it does ONE thing. no drama, no flags, no --help chaos. lowkey refreshing ngl πŸ’–


🌸 DESCRIPTION 🌸

Here's the tea, and it's genuinely simple:

  • Enforcing or 1 β€” puts SELinux into enforcing mode πŸ‘‘
  • Permissive or 0 β€” puts SELinux into permissive mode 🫢

so you can type the vibe word OR the vibe number, your call, they're the same energy fr fr.

Now, the part where I have to be a responsible bestie and not let you do something cursed: if SELinux is disabled and you want to enable it, or SELinux is enabled and you want to disable it β€” this is not the tool for that. setenforce does not do that. Do not make it do that. It will not do that. πŸ™ˆ

For turning SELinux itself on or off, please go see selinux(8). That's the one you want. Not this one. Different page, different job. πŸ’€

ok genuinely though β€” enabling/disabling SELinux is a whole different process with a whole different manual page. Don't try to sneak it in here. Go read selinux(8) like a good little sysadmin. πŸŽ€

🌈 AUTHOR 🌈

This masterpiece was brought to you by Dan Walsh, <dwalsh@redhat.com>. main character energy, we stan. πŸ’œ


⭐ SEE ALSO ⭐

your little reading list, bestie, go forth and expand your knowledge:

iykyk β€” getenforce(8) is literally just this page's mirror selfie, it tells you what mode you're currently in while setenforce changes it. perfect pair. πŸ’•


and that's the whole page!! πŸŽ€ big love to <dwalsh@redhat.com>, who dropped this back on 7 April 2004 and honestly? it still ate. go set your enforcement mode, bestie, you got this πŸ«Άβœ¨πŸ’–