Resolving an installation failure caused by Security-Enhanced Linux

Security-Enhanced Linux® (SELinux) can cause the installation of a text search server on Linux to fail.

About this task

SELinux is a Linux feature that provides support for access control security policies. If you plan to install a text search server on Linux, you need to temporarily disable SELinux. You can set SELinux to permissive mode, install the text search server, and then switch SELinux back to enforcing mode.

Procedure

To resolve an installation failure that is caused by SELinux:

  1. Check what mode your Linux system is using by issuing the following command:
    cat/selinux/enforce
    This command returns "0" for permissive mode and "1" for enforcing mode.
  2. To set the system to permissive mode, issue the following command:
    echo 0 >/selinux/enforce

    To issue this command, you must be logged in as root, and in the sysadm_r role. For example:

    newrole -r sysadm_r
  3. After successfully installing a text search server on Linux, you can switch the system back to enforcing mode by issuing the following command:
    echo 1 >/selinux/enforce