|
|
256ebe |
From 662c94f3b3173bf78465644e2e42e03efd9ea493 Mon Sep 17 00:00:00 2001
|
|
|
256ebe |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
256ebe |
Date: Mon, 17 Jul 2017 11:07:40 -0400
|
|
|
256ebe |
Subject: [PATCH 071/124] common-ha: enable and disable selinux
|
|
|
256ebe |
gluster_use_execmem
|
|
|
256ebe |
|
|
|
256ebe |
Starting in Fedora 26 and RHEL 7.4 there are new targeted policies in
|
|
|
256ebe |
selinux which include a tuneable to allow glusterd->ganesha-ha.sh->pcs
|
|
|
256ebe |
to access the pcs config, i.e. gluster-use-execmem.
|
|
|
256ebe |
|
|
|
256ebe |
Note. rpm doesn't have a way to distinguish between RHEL 7.3 or 7.4
|
|
|
256ebe |
or between 3.13.1-X and 3.13.1-Y so it can't be enabled for RHEL at
|
|
|
256ebe |
this time.
|
|
|
256ebe |
|
|
|
256ebe |
/usr/sbin/semanage is in policycoreutils-python in RHEL (versus
|
|
|
256ebe |
policycoreutils-python-utils in Fedora.)
|
|
|
256ebe |
|
|
|
256ebe |
Requires selinux-policy >= 3.13.1-160 in RHEL7. The corresponding
|
|
|
256ebe |
version in Fedora 26 seems to be selinux-policy-3.13.1-259 or so. (Maybe
|
|
|
256ebe |
earlier versions, but that's what was in F26 when I checked.)
|
|
|
256ebe |
|
|
|
256ebe |
Label: DOWNSTREAM ONLY
|
|
|
256ebe |
|
|
|
256ebe |
Change-Id: Ic474b3f7739ff5be1e99d94d00b55caae4ceb5a0
|
|
|
256ebe |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
256ebe |
Reviewed-on: https://review.gluster.org/17806
|
|
|
256ebe |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
256ebe |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
256ebe |
Reviewed-by: soumya k <skoduri@redhat.com>
|
|
|
256ebe |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
256ebe |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
256ebe |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167156
|
|
|
256ebe |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
256ebe |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
256ebe |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
256ebe |
---
|
|
|
256ebe |
extras/ganesha/scripts/ganesha-ha.sh | 6 ++++++
|
|
|
256ebe |
1 file changed, 6 insertions(+)
|
|
|
256ebe |
|
|
|
256ebe |
diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
256ebe |
index 537c965..f4400af 100644
|
|
|
256ebe |
--- a/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
256ebe |
+++ b/extras/ganesha/scripts/ganesha-ha.sh
|
|
|
256ebe |
@@ -984,6 +984,9 @@ main()
|
|
|
256ebe |
usage
|
|
|
256ebe |
exit 0
|
|
|
256ebe |
fi
|
|
|
256ebe |
+
|
|
|
256ebe |
+ semanage boolean -m gluster_use_execmem --on
|
|
|
256ebe |
+
|
|
|
256ebe |
HA_CONFDIR=${1%/}; shift
|
|
|
256ebe |
local ha_conf=${HA_CONFDIR}/ganesha-ha.conf
|
|
|
256ebe |
local node=""
|
|
|
256ebe |
@@ -1129,6 +1132,9 @@ $HA_CONFDIR/ganesha-ha.conf
|
|
|
256ebe |
;;
|
|
|
256ebe |
|
|
|
256ebe |
esac
|
|
|
256ebe |
+
|
|
|
256ebe |
+ semanage boolean -m gluster_use_execmem --off
|
|
|
256ebe |
+
|
|
|
256ebe |
}
|
|
|
256ebe |
|
|
|
256ebe |
main $*
|
|
|
256ebe |
--
|
|
|
256ebe |
1.8.3.1
|
|
|
256ebe |
|