19 lines
557 B
Bash
Executable File
19 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
[ -x /usr/sbin/semanage ] || exit 0
|
|
|
|
# FIXME: Work around SELinux issues on Fedora 21
|
|
# https://bugs.launchpad.net/tripleo/+bug/1428784
|
|
VERSION=`lsb_release -sr` || true
|
|
[ $VERSION -eq 21 ] && exit 0
|
|
|
|
semanage fcontext -a -t neutron_var_lib_t "/mnt/state/var/lib/neutron(/.*)?"
|
|
restorecon -Rv /mnt/state/var/lib/neutron
|
|
|
|
semanage fcontext -a -t neutron_var_lib_t "/var/run/neutron(/.*)?"
|
|
restorecon -Rv /var/run/neutron
|
|
|
|
semanage fcontext -a -t neutron_log_t "/mnt/state/var/log/neutron(/.*)?"
|
|
restorecon -Rv /mnt/state/var/log/neutron
|