selinux-config-enforcing(8)
π selinux-config-enforcing β the little 8th-section glow-up π
okay bestie, welcome to selinux-config-enforcing(8), a page from the System Manager's Manual. yes it's a whole manual page for one (1) tiny command and honestly? iconic behaviour.
πΈ NAME πΈ
selinux-config-enforcing β edits /etc/selinux/config so your system boots into enforcing or permissive mode, no cap.
β¨ SYNOPSIS β¨
selinux-config-enforcing [permissive]
π DESCRIPTION π
so like, this command goes straight into /etc/selinux/config and rewrites it to say whether SE Linux should be running in enforcing mode or permissive mode when you boot up. that's it. that's the whole job. it's giving low-effort, high-impact.
π«Ά but heads up bestie: theenforcing=kernel command-line option can override all of this. it takes the value0for permissive and1for enforcing. so if your kernel line is out here contradicting your config file, the kernel wins. periodt.
and the parameter logic? honestly so simple:
- the parameter
0orpermissiveβ it sets permissive mode. - any other parameter β it sets enforcing mode.
that's it. literally any other thing you type gets you enforcing. the vibes are: permissive requires commitment, everything else is enforcing by default. π
π SEE ALSO π
your reading list, bestie, go be a scholar:
selinux(8)sestatus(8)selinuxenabled(1)load_policy(8)semodule(8)postfix-nochroot(8)check-selinux-installation(8)selinux-policy-upgrade(8)http://wiki.debian.org/SELinuxβ More about SELinux Debian installhttp://etbe.coker.com.au/tag/selinux/β Russell's SE Linux blog posts.
π AUTHOR π
This program and it's man page was written by Russell Coker <russell@coker.com.au> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3. β¨
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3.
and that's the whole page, bestie!! π¦ slay, go flip your SELinux mode responsibly, and remember: this was selinux-config-enforcing(8) from the System Manager's Manual, no version number listed, no date on the footer either β just the page name, twice, holding it down. mwah. ππΈπ
π¦ where this page comes from
- debian bookworm: selinux-basics 0.5.8 Β· GPL-2.0-or-later
- debian trixie: selinux-basics 0.6.0 Β· GPL-2.0-or-later
- ubuntu jammy: selinux-basics 0.5.8 Β· GPL-2.0-or-later
- ubuntu noble: selinux-basics 0.5.9 Β· GPL-2.0-or-later
- ubuntu resolute: selinux-basics 0.6.0 Β· GPL-2.0-or-later
- ubuntu stonking: selinux-basics 0.6.0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms