SELinux is a security mechanism that works on top of the native file and directory read/write/execute permissions within the Linux file system. It is available for most Linux distributions and is installed by default in newer RHEL (Red Hat Enterprise Linux) & Fedora distributions.

As SELinux may prevent the installation and/or operation of any software being executed, ensure that you create appropriate policy file for it.   

Ensure that you consult with your security team to determine the correct level of access for the APM. 

SELinux allows you to set a finer granularity of restrictions on access and execution. This control is represented by "policy files", typically created and maintained by the SecOps team within your organisation. For more details about SELinux see

The policy files are found in /etc/sestatus.conf  by default. To determine if SELinux is present on your system, run getenforce command which returns the string Enforcing if it is active.

Alternatively, you can run the following command:


The above command produces following output:

SELinux status: enabled
SELinuxfs mount: /selinux
Current Mode: permissive
Policy version: 16

If SELinux status is disabled, it indicates that the system has not installed the package. However, if the status returned is enabled, but the Current Mode is permissive, then SELinux policy files are not enforced. To install and test the APM Agent:

For more details on how to customize your policy files see

To enable SELinux, use the command setenforce 1 to enable enforcing mode; to disable SELInux use setenforce 0 (i.e. set to "permissive" mode).

For more details about enabling/disabling SELinux: