Enable SELinux in swarm bay

SELinux is an important security features. We need to turn it on
after cloud-init. This patch did that for swarm.

Change-Id: I1862a63498613535741c3aae9c0378911ec21315
Partial-Bug: #1543308
changes/90/290090/1
Hongbin Lu 7 years ago
parent f3f99577dc
commit 44b2e77979

@ -2,7 +2,3 @@
#!/bin/sh
setenforce 0
sed -i '
/^SELINUX=/ s/=.*/=permissive/
' /etc/selinux/config

@ -7,3 +7,5 @@ for service in $NODE_SERVICES; do
systemctl enable $service
systemctl --no-block start $service
done
setenforce 1

Loading…
Cancel
Save