booleans(8)
π booleans β the SELinux glow-up page π
okay bestie, you found the booleans page in section 8 of the SELinux Command Line documentation, and honestly? this one is a bop. let's get into it. π¦
β¨ NAME β¨
booleans β policy booleans let you customize SELinux policy at runtime, no reboot required. periodt. π
πΈ DESCRIPTION πΈ
so here's the tea. the SELinux policy can have conditional rules in it, and those rules flip on or off depending on whatever the current values of a set of policy booleans happen to be. which means you can mod the security policy while the system is running without loading a whole new policy. no cap, that's the whole point. β¨
for example β and this is the example the original gives so we're keeping it β the boolean httpd_enable_cgi lets the httpd daemon run cgi scripts if it's enabled. and if the admin does not want cgi scripts executing? they just disable this boolean value. simple as. π
the policy defines a default value for each boolean, typically false. those defaults can be overridden through local settings made with the setsebool(8) utility, and you use -P to make that setting persistent across reboots (yes bestie, -P is the one that actually sticks around π). the system-config-securitylevel tool gives you a whole graphical interface for changing the settings if clicking is more your vibe. and the load_policy(8) program will preserve your current boolean settings when it reloads a policy, by default β or it can optionally reset booleans back to the boot-time defaults via the -b option. your call, main character. π
you can list out all the boolean values with the getsebool(8) utility, just hand it the -a option. easy. β
and you can also change boolean values at runtime via setsebool(8) or togglesebool(8). but lowkey important: by default these utilities only change the current boolean value and do not touch the persistent settings β unless you use the -P option with setsebool. so if you want it to survive a reboot, you know what to do. π«Ά
ngl, forgetting -P and then wondering why your setting ghosted you after a reboot is a rite of passage. don't be that girl. π
π AUTHOR π
this manual page was written by Dan Walsh <dwalsh@redhat.com>. and the SELinux conditional policy support was developed by Tresys Technology. icons, both of them. π
π₯ SEE ALSO π₯
and that's the whole page, bestie, you ate it. π this little beauty is signed off by <dwalsh@redhat.com> and it's been iconic since 11 Aug 2004 β yeah, this page is older than most of us and still serving booleans(8) energy. slay. ππ
π¦ where this page comes from
- alpine 3.24: libselinux-doc 3.10-r1 Β· Public-Domain
- centos-stream 10: libselinux-utils 3.11-3.el10 Β· LicenseRef-Fedora-Public-Domain
- centos-stream 9: libselinux-utils 3.6-5.el9 Β· Public Domain
- debian bookworm: selinux-utils 3.4-1+b6
- debian trixie: selinux-utils 3.8.1-1 Β· LicenseRef-public-domain
- fedora 43: libselinux-utils 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-utils 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-utils 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- nixos 26.05: libselinux 3.10
- nixpkgs unstable: libselinux 3.11
- opensuse-leap 16.0: selinux-tools 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: selinux-tools 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: selinux-tools 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: selinux-tools 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- ubuntu jammy: selinux-utils 3.3-1build2
- ubuntu noble: selinux-utils 3.5-2ubuntu2 Β· LicenseRef-public-domain
- ubuntu noble: selinux-utils 3.5-2ubuntu2.1 Β· LicenseRef-public-domain
- ubuntu questing: selinux-utils 3.8.1-1build1
- ubuntu resolute: selinux-utils 3.9-4build1 Β· LicenseRef-public-domain
- ubuntu stonking: selinux-utils 3.11-2.1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms