How can I tell what mode SELinux is in?

book

Article ID: 159597

calendar_today

Updated On:

Products

Data Loss Prevention Endpoint Prevent Data Loss Prevention Network Monitor Data Loss Prevention Network Prevent for Email Data Loss Prevention Enforce Data Loss Prevention Network Prevent for Web Data Loss Prevention Network Protect

Issue/Introduction

I'm installing on a Linux system and have heard about SELinux (Security Enhanced Linux).  I'm not sure how to determine if it is enabled or configured or whatever. 

How do I do that?

Resolution

The SELinux operation is configured mainly by the file /etc/SELinux/config

You can also run, as root, the command /usr/sbin/getenforce.

Check the SELinux (Security Enhanced Linux) project page for more information on using SELinux.

If you are not sure about the selinux status during startup, you can search the startup log by typing: dmesg | less