Ways to check the SELinux status:
From:
How to Check for whether SELinux is Enabled or Disabled (document ID 432988.1)
There are 3 modes of SELinux:
Enforcing (or known as enabled), Disabled or Permissive.
Permissive mode loads the SELinux software, but doesn ' t enforce the rules, only logging is performed.
You can use the following command to check the status of SELinux:
[Email protected] ~]# uname-alinux servera 2.6.18-308.el5 #1 SMP Fri Jan 17:17:51 EST. x86_64 x86_64 x86_64 gnu/l Inux[[email protected] ~]# sestatusselinux Status: disabled[[email protected] ~]# Getenforcedisabled[[email Protected] ~]#
If you are in the program to determine the status of SELinux, use the following command:
[Email protected] ~]#/usr/sbin/selinuxenabled; If [$?-ne 0]; Then echo "DISABLED"; else echo "ENABLED"; Fidisabled
"Go from MoS article" method for checking SELinux status