Commands for checking and changing SELinux's operating mode (Enforcing or Permissive).
getenforce shows the current mode, and setenforce can temporarily switch it. A typical use during troubleshooting is switching temporarily to Permissive mode (which disables enforcement but still logs violations) to determine whether SELinux is the cause of a problem.
© 2026 ITBGM