getenforce(8)
β¨ getenforce β bestie check on ur SELinux vibe β¨
okay so real talk, this is a page from the SELinux Command Line documentation (that's the getenforce(8) manual, section 8, system admin girlies only π
) and it is genuinely the shortest glow-up of a command you will ever meet.
πΈ NAME πΈ
getenforce β get the current mode of SELinux
like... that's it. that's the whole job. she tells u what mode SELinux is in. main character energy, minimal effort π«Ά
π¦ SYNOPSIS π¦
getenforce
no flags. no arguments. no options. nothing. u just type her name and she answers. it's giving "i don't do small talk, i do answers" β
π DESCRIPTION π
getenforce reports whether SELinux is enforcing, permissive, or disabled.
that's the tea β three possible moods and she will tell u exactly which one u got:
- enforcing β SELinux is locked in and actually blocking stuff. no cap.
- permissive β SELinux sees everything, logs everything, stops nothing. she's watching but she's not intervening π
- disabled β SELinux is not on. asleep. napping. not invited to the party π
one command, one answer, zero drama. iconic. periodt.
π AUTHOR π
Dan Walsh, <dwalsh@redhat.com> β the legend who wrote this. say thank u π«Ά
π SEE ALSO π
iykyk β getenforce is the read, setenforce is the write, and they're besties fr fr π
and that's the whole page bestie!! this little icon was brought to u by dwalsh@redhat.com, dated 7 April 2004 (yes she's been slaying since 2004, longevity queen π), and she's still out here answering the same one question with the same one word. obsessed. bye!! β¨π¦πΈ
π¦ 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