getsebool(8)
getsebool(8) π
okay bestie, welcome to the SELinux Command Line documentation β this is the little cutie that tells you whether your SELinux booleans are on or off π
β¨ NAME β¨
getsebool β get SELinux boolean value(s) π¦
πΈ SYNOPSIS πΈ
getsebool [-a] [boolean]
π DESCRIPTION π
So getsebool reports whether a particular SELinux boolean β or all SELinux booleans β are on or off. simple as that, no cap β¨
But here's the tea: in certain situations a boolean can be in one state with a pending change to the other state. getsebool will report this as a pending change. the pending value indicates the value that will be applied upon the next boolean commit. π
And why does that matter? because the setting of boolean values happens in two stages, bestie:
- first the pending value is changed
- then the booleans are committed, causing their active values to become their pending values
This lets a whole group of booleans be changed in a single transaction β you set all of their pending values as you want them, and then you commit once. it's giving coordinated group-chat energy fr fr π
π OPTIONS π
-aβ Show all SELinux booleans. every single one, no gatekeeping π
π EXAMPLE π
Show current state of httpd_can_connect_ftp:
# getsebool httpd_can_connect_ftp
π AUTHOR π
This manual page was written by Dan Walsh <dwalsh@redhat.com>. The program was written by Tresys Technology. iconic of them honestly π«Ά
β SEE ALSO β
selinux(8), setsebool(8), booleans(8)
go read those too bestie, iykyk πβ¨
ok so that's the whole page!! now go forth and vibe check your booleans π¦π
dwalsh@redhat.com β 11 Aug 2004 β getsebool(8) πΈ mwah, thanks for reading, ily, periodt π
β¨
π¦ 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 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 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