tripleo-image-elements/elements/swift/os-refresh-config/configure.d/20-swift-selinux
Richard Su 531841d38d SELinux: Allow swift access to ephemeral ports
Enable the swift_can_network SELinux boolean to allow
swift access to ephemeral ports.

Change-Id: Ib7289929093f03ad39bb0aaa8e75f7e0842a9f5f
Closes-Bug: 1375526
2014-09-29 18:54:36 -07:00

10 lines
205 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
# Allow swift access to ephemeral ports
# https://bugs.launchpad.net/tripleo/+bug/1375526
if [[ -x /usr/sbin/semanage ]]; then
setsebool -P swift_can_network 1
fi