Use the
getenforce
or sestatus
commands to check the status of SELinux. The getenforce
command returns Enforcing
, Permissive
, or Disabled
.The
sestatus
command returns the SELinux status and the SELinux policy being used: