Federico Simoncelli has uploaded a new change for review. Change subject: setup: configure selinux for sanlock on nfs ......................................................................
setup: configure selinux for sanlock on nfs Signed-off-by: Federico Simoncelli <[email protected]> Change-Id: Id9005d23d009c65770b7836feb81ab97206e9a8a --- M vdsm.spec.in 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/55/8255/1 diff --git a/vdsm.spec.in b/vdsm.spec.in index 8942815..90e1d70 100644 --- a/vdsm.spec.in +++ b/vdsm.spec.in @@ -423,12 +423,15 @@ # The next lines will collect the default selinux behaviour for the booleans virtNFS=$(/usr/sbin/semanage boolean -l | /bin/grep virt_use_nfs | cut -d ',' -f 2) virtSANLOCK=$(/usr/sbin/semanage boolean -l | /bin/grep virt_use_sanlock | cut -d ',' -f 2) +snlkNFS=$(/usr/sbin/semanage boolean -l | /bin/grep sanlock_use_nfs | cut -d ',' -f 2) # Set the booleans and persist it across reboots -if [[ "${virtNFS}" == *off* || "${virtSANLOCK}" == *off* ]]; then +if [[ "${virtNFS}" == *off* || "${virtSANLOCK}" == *off* || \ + "${snlkNFS}" == *off* ]]; then /usr/sbin/semanage boolean -m -S targeted -F /dev/stdin << _EOF virt_use_nfs=1 virt_use_sanlock=1 +sanlock_use_nfs=1 _EOF fi @@ -436,6 +439,7 @@ if /usr/sbin/selinuxenabled; then /usr/sbin/setsebool virt_use_nfs on /usr/sbin/setsebool virt_use_sanlock on + /usr/sbin/setsebool sanlock_use_nfs on fi %post -- To view, visit http://gerrit.ovirt.org/8255 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id9005d23d009c65770b7836feb81ab97206e9a8a Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
