Add SELinux policy for Horizon

httpd, due to Horizon,  needs SELinux policy to allow it to connect to
the various ports for the OpenStack services. We can add this policy by
setting the SELinux boolean httpd_can_network_connect.

Change-Id: I663e543ddb1738c5e2de40b37d5a0e697762feb4
Closes-Bug: 1361630
This commit is contained in:
James Slagle 2014-08-26 08:25:38 -04:00
parent 636a04dd5b
commit 4faeb9570f
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -eux
set -o pipefail
[ -x /usr/sbin/semanage ] || exit 0
# https://bugs.launchpad.net/tripleo/+bug/1361630
# https://bugzilla.redhat.com/show_bug.cgi?id=1133904
setsebool -P httpd_can_network_connect 1