CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

SELinux Enforcing and Permissive Modes

The shortest SELinux objective. Two commands and one asymmetry that matters: enforcing and permissive swap instantly, and `disabled` is a one-way door that needs a reboot in each direction.

Security and SELinux Guide 55 of 67 Beginner

Written against the versions above. **Never leave a machine permissive to make a task work.** SELinux enforcing is the state the exam machine is graded in, and switching it off is the fastest way to lose several tasks at once. Permissive is a diagnostic tool - it logs what it *would* have denied.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0 (Coughlan)Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

Before you start

  1. The three states

  2. Switching at runtime

Official sources