Chapter 1. Introduction to SELinux
SELinux provides enhanced security by enforcing security policies, using labels for files, processes and ports, and logging unauthorized access attempts.
SELinux is enabled and set to enforcing
mode on RHEL 9 by default and security policies for system processes are maintained by Red Hat. For more information, refer to Changing SELinux states and modes on RHEL. You can refer to SAP Note 3108302 - SAP HANA DB: Recommended OS Settings for RHEL 9, to know which HANA versions have been tested by SAP with SELinux set to enforcing
and unconfined
mode.
Red Hat recommends that you use SELinux in enforcing
mode to configure your RHEL systems running on SAP HANA. This document describes the necessary configuration changes that you must make.
In case you come across SELinux related issues while testing or running your SAP HANA system, SAP reserves the right to disable SELinux. However, most of the problems can be solved by changing SELinux mode from enforcing
to permissive
. The advantage is that your system is still operating while you analyze and solve the problem.