My Oracle Support Banner

Oracle Linux: How to Disable or Set SELinux to Permissive Mode in Oracle Linux 9 (Doc ID 3014306.1)

Last updated on APRIL 08, 2024

Applies to:

Linux OS - Version Oracle Linux 9.0 and later
Linux x86-64

Goal

How to completely disable SELinux (Security Enhanced Linux) or set it to "permissive" mode.

The document that describes the new method of disabling SELinux in OL9 can be found in the below link:
https://docs.oracle.com/en/operating-systems/oracle-linux/9/relnotes9.0/ol9-NewFeaturesandChanges.html#ol9-features-security

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. Disabled mode is strongly discouraged; not only does the system avoid enforcing the SELinux policy, it also avoids labeling any persistent objects such as files, making it difficult to enable SELinux in the future.
Using the older method of disabling SELinux in the /etc/selinux/config does not disable SELinux; but rather, SELinux stays enabled, but no policy is loaded.

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
References

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