Configure SELinux with Swarm
This procedure describes how to configure SELinux on a machine on which Cyberwatch is deployed. Only CentOS and Red Hat Enterprise Linux operating systems are supported.
Ensure that Cyberwatch is deployed and functional
Enable SELinux on the machine:
Set the
SELINUXvariable toenforcingin file/etc/selinux/config:-SELINUX=disabled +SELINUX=enforcingReboot the machine:
sudo rebootVerify that SELinux is enabled:
sestatusThe output should contain:
SELinux status: enabled Current mode: enforcingInstall package
container-selinux:sudo yum install container-selinuxEnable
container_manage_cgroupSELinux boolean:sudo setsebool container_manage_cgroup 1Add
"selinux-enabled": truein file/etc/docker/daemon.json:+{ + "selinux-enabled": true +}Restart Docker:
sudo systemctl restart docker