How to Check whether SELinux is Enabled or Disabled (Doc ID 432988.1)

Last updated on JULY 04, 2017

Applies to:

Linux OS - Version Enterprise Linux 4.0 to Oracle Linux 7.1 with Unbreakable Linux Kerne l[3.8.13] [Release RHEL4 to OL7U1]
Linux Itanium
Linux x86
Linux x86-64
***Checked for relevance on 19-Jan-2011***
Linux Kernel - Version: 4.0 to 5.3


Goal

From SELinux Frequently Asked Questions (FAQ):

Security-enhanced Linux (SELinux) is a reference implementation of the Flask security architecture for flexible mandatory access control. It was created to demonstrate the value of flexible mandatory access controls and how such controls could be added to an operating system. The Flask architecture has been subsequently mainstreamed into Linux® and ported to several other systems, including the Solaris™ operating system, the FreeBSD® operating system, and the Darwin kernel, spawning a wide range of related work. The Flask architecture provides general support for the enforcement of many kinds of mandatory access control policies, including those based on the concepts of Type Enforcement®, Role-based Access Control, and Multi-level Security.

RedHat and Oracle Enterprise Linux provides the SELinux functionality. How one can check whether SELinux is enabled on a system or not?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms