Skip to main content

Making SELinux compatible with On-Access scanning in BEST Linux

Security-Enhanced Linux (SELinux) is a kernel feature that provides a mechanism for supporting access control security policies.

When the SELinux policies are set to Enforcing, this mechanism interferes with the Antimalware module in specific situations:

  • when using BEST for Linux v7 with CentOS 6 and where DazukoFS is present.

  • when using auditd to support EDR.

  • when deploying Bitdefender Security for Container on virtual machines.

To overcome this issue, you need to change the SELinux policies to Permissive or Disabled (recommended). This is how you make SELinux compatible with On-Access Scanning:

  1. Check the status of SELinux on the endpoint, by running the following command:

    sudo sestatus

    If the SELinux Current mode is set to Enforcing, you need to change it to Permissive or Disabled (recommended).

  2. To change the SELinux policy status:

    1. Edit the configuration file with the text editor of your choice (such as vim or nano).

    2. On Red Hat based systems (RHEL, CentOS, Fedora, SuSE), the configuration file is /etc/sysconfig/selinux.

    3. On Ubuntu / Debian based systems, the configuration file is /etc/selinux/config.

      Note

      If you cannot find the SELinux configuration file on your system, please consult the documentation of your Linux distribution.

      Example:

      # nano /etc/sysconfig/selinux
    4. Edit the line starting with SELINUX= as follows:

      • For Permissive mode:

        SELINUX=permissive
        16543_1.png
      • For Disabled mode:

        SELINUX=disabled
        16543_2.png
    5. Save the file.

      If you use nano to edit the configuration, to save the file and exit, use the following sequence: Ctrl+O, Enter, Ctrl+X.

    6. Reboot the endpoint.

    7. After reboot, check the SELinux status by running the command again:

      sudo sestatus

      The output should be permissive or disabled.

      16543_3.png
    8. Check the Antimalware module status with the following command:

      # /opt/bitdefender-security-tools/bin/bduitool get ps | grep Antimalware

      The Antimalware module status should be On (active).

      16543_4.png

      If the Antimalware module is Off, although SELinux is properly configured, refer to On-access scanning in Bitdefender Endpoint Security Tools for Linux for troubleshooting Bitdefender Endpoint Security Tools for Linux.