My Oracle Support Banner

How to Disable or set SELinux to Permissive mode (Doc ID 457458.1)

Last updated on APRIL 12, 2021

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Enterprise Linux 4.0 and later
Linux x86
Linux x86-64
Linux Kernel - Version: 4.0 to 5.0

Currency Check on 25-Jul-2014


Goal

How to fully disable SELinux (Security Enhanced Linux); or set it to "permissive" mode, in which case the SELinux software is loaded, but no enforcing is made of the rules, only logging is performed.


Please note that disabling SELinux or setting to "permissive" mode may have some security considerations. It is possible to keep SELinux enabled, and add manual exclusion rules.

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
 To completely disable SELinux, use either of these methods:
 To set SELinux to Permissive mode, use either of these methods:
 To check the status of SELinux, issue:
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.