Setting up SELinux

Security-Enhanced Linux (SELinux) on the hypervisor must be disabled or the permissions must be set up correctly.

  1. To set SELinux to permissive, type the following command:
    sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config
    setenforce 0
  2. To set SELinux to disabled, type the following command:
    sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
  3. After you run a command, restart the system to save the changes permanently.
  4. After you restart the system, you can use the getenforce command to see the SELinux status.



Last updated: Mon, July 25, 2016