|
|
d1681e |
From 9b299dff3811a48978a76cbdd5f4f66f0cf68d78 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: Ambarish <asoman@redhat.com>
|
|
|
d1681e |
Date: Tue, 12 Sep 2017 18:34:29 +0530
|
|
|
d1681e |
Subject: [PATCH 69/74] ganesha-ha: don't set SELinux booleans if SELinux is
|
|
|
d1681e |
disabled
|
|
|
d1681e |
|
|
|
d1681e |
semanage commands inside ganesha-ha.sh script will fail if selinux is
|
|
|
d1681e |
Disabled. This patch introduces a check if selinux is enabled or not,
|
|
|
d1681e |
and subsequently run semange commands only on selinux enabled systems.
|
|
|
d1681e |
|
|
|
d1681e |
Change-Id: Ibee61cbb1d51a73e6c326b49bac5c7ce06feb310
|
|
|
d1681e |
Signed-off-by: Ambarish <asoman@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://review.gluster.org/18264
|
|
|
d1681e |
Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
d1681e |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
d1681e |
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
|
|
|
d1681e |
Reviewed-by: jiffin tony Thottan <jthottan@redhat.com>
|
|
|
d1681e |
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
|
|
|
d1681e |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
d1681e |
---
|
|
|
d1681e |
extras/ganesha/scripts/ganesha-ha.sh | 9 ++++++---
|
|
|
d1681e |
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
d1681e |
index 0b7642d..3a18a1a 100644
|
|
|
d1681e |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
d1681e |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
d1681e |
@@ -985,7 +985,9 @@ main()
|
|
|
d1681e |
exit 0
|
|
|
d1681e |
fi
|
|
|
d1681e |
|
|
|
d1681e |
- semanage boolean -m gluster_use_execmem --on
|
|
|
d1681e |
+ if (selinuxenabled) ;then
|
|
|
d1681e |
+ semanage boolean -m gluster_use_execmem --on
|
|
|
d1681e |
+ fi
|
|
|
d1681e |
|
|
|
d1681e |
HA_CONFDIR=${1%/}; shift
|
|
|
d1681e |
local ha_conf=${HA_CONFDIR}/ganesha-ha.conf
|
|
|
d1681e |
@@ -1133,8 +1135,9 @@ $HA_CONFDIR/ganesha-ha.conf
|
|
|
d1681e |
|
|
|
d1681e |
esac
|
|
|
d1681e |
|
|
|
d1681e |
- semanage boolean -m gluster_use_execmem --off
|
|
|
d1681e |
-
|
|
|
d1681e |
+ if (selinuxenabled) ;then
|
|
|
d1681e |
+ semanage boolean -m gluster_use_execmem --off
|
|
|
d1681e |
+ fi
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
main $*
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|