From 4e457ee9912379252210a1f1d8dfb83de43e018f Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 16 Apr 2015 16:57:43 -0300 Subject: [PATCH] Install selinux before to add rules --- utils/reverseproxy_ssh_setup | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/utils/reverseproxy_ssh_setup b/utils/reverseproxy_ssh_setup index adb939a..7fa818c 100755 --- a/utils/reverseproxy_ssh_setup +++ b/utils/reverseproxy_ssh_setup @@ -7,6 +7,9 @@ port="$1" # switch SSH to port $port sed -i -e 's/^#\?\s*Port\s*[0-9]\+\s*$/Port '$port'/g' /etc/ssh/sshd_config +# Install SELinux +yum install -y selinux-policy policycoreutils-python + # Tell SELinux to allow the new port semanage port -a -t ssh_port_t -p tcp "$port" -- libgit2 0.21.2