getsebool(8)

πŸ“¦
version 3.11 Β· 2 versions
, in alpine 3.24, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

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:

  1. first the pending value is changed
  2. 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 πŸ’…βœ¨