The method for checking the selinux status is as follows: kernel (document ID432988.1) selinux has three modes: Enforcing (orknownasenabled), DisabledorPermissive. PermissivemodeloadstheSELinuxsoftware, butdoesntenf
Method for checking selinux status: Source: How to Check whether SELinux is Enabled or Disabled (Document ID 432988.1) selinux has three modes: Enforcing (or known as enabled), Disabled or Permissive. permissive mode loads the SELinux software, but doesnt enf
How to check selinux status:
Source:
How to Check whether SELinux is Enabled or Disabled (Document ID 432988.1)
Selinux has three modes:
Enforcing (or known as enabled), Disabled or Permissive.
Permissive mode loads the SELinux software, but doesn' t enforce the rules, only logging is performed med.
Run the following command to check the status of selinux:
[Root @ servera ~] # Uname-aLinux servera 2.6.18-308. el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 [this article is from the Internet (http://www.68idc.cn)] x86_64 GNU/Linux [root @ servera ~] # SestatusSELinux status: disabled [root @ servera ~] # GetenforceDisabled [root @ servera ~] #
If the selinux status is determined in the program, use the following command:
[root@servera ~]# /usr/sbin/selinuxenabled; if [ $? -ne 0 ]; then echo "DISABLED"; else echo "ENABLED"; fiDISABLED