Tuesday, 23 July 2013

How to know if SE linux is running and test its status

Test if SELinux is running
You can test to see if SELinux is currently enabled with the following command:

selinuxenabled && echo enabled || echo disabled

Or Run the sestatus command to confirm that SELinux is enabled, is running in enforcing mode, and that targeted policy is being used:


$ /usr/sbin/sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

No comments:

Post a Comment