|
|
e3c68b |
From a80743a3053798521ae4dd830adcde8bc7da11b6 Mon Sep 17 00:00:00 2001
|
|
|
e3c68b |
From: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
e3c68b |
Date: Tue, 20 Feb 2018 11:50:33 +0530
|
|
|
e3c68b |
Subject: [PATCH 083/124] common-ha: enable and disable selinux
|
|
|
e3c68b |
ganesha_use_fusefs
|
|
|
e3c68b |
|
|
|
e3c68b |
Adding missing changes in a downstream backport(https://code.engineering.redhat.com/gerrit/#/c/109845/)
|
|
|
e3c68b |
|
|
|
e3c68b |
Label: DOWNSTREAM ONLY
|
|
|
e3c68b |
|
|
|
e3c68b |
Change-Id: I59fd2fc2228ded9547c2d1e08c22f7a10c35f86f
|
|
|
e3c68b |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
e3c68b |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167244
|
|
|
e3c68b |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
e3c68b |
Reviewed-by: Kaleb Keithley <kkeithle@redhat.com>
|
|
|
e3c68b |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
e3c68b |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
e3c68b |
---
|
|
|
e3c68b |
glusterfs.spec.in | 15 ++++++++++-----
|
|
|
e3c68b |
1 file changed, 10 insertions(+), 5 deletions(-)
|
|
|
e3c68b |
|
|
|
e3c68b |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
e3c68b |
index bc27058..2149f86 100644
|
|
|
e3c68b |
--- a/glusterfs.spec.in
|
|
|
e3c68b |
+++ b/glusterfs.spec.in
|
|
|
e3c68b |
@@ -472,11 +472,16 @@ Requires: resource-agents >= 3.9.5
|
|
|
e3c68b |
Requires: net-tools
|
|
|
e3c68b |
%endif
|
|
|
e3c68b |
|
|
|
e3c68b |
-%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
e3c68b |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
|
|
e3c68b |
+%if ( 0%{?rhel} )
|
|
|
e3c68b |
Requires: selinux-policy >= 3.13.1-160
|
|
|
e3c68b |
+Requires(post): policycoreutils-python
|
|
|
e3c68b |
+Requires(postun): policycoreutils-python
|
|
|
e3c68b |
+%else
|
|
|
e3c68b |
Requires(post): policycoreutils-python-utils
|
|
|
e3c68b |
Requires(postun): policycoreutils-python-utils
|
|
|
e3c68b |
%endif
|
|
|
e3c68b |
+%endif
|
|
|
e3c68b |
|
|
|
e3c68b |
%description ganesha
|
|
|
e3c68b |
GlusterFS is a distributed file-system capable of scaling to several
|
|
|
e3c68b |
@@ -936,7 +941,7 @@ exit 0
|
|
|
e3c68b |
%endif
|
|
|
e3c68b |
|
|
|
e3c68b |
%if ( 0%{!?_without_server:1} )
|
|
|
e3c68b |
-%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
e3c68b |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
|
|
e3c68b |
%post ganesha
|
|
|
e3c68b |
semanage boolean -m ganesha_use_fusefs --on
|
|
|
e3c68b |
exit 0
|
|
|
e3c68b |
@@ -1076,7 +1081,7 @@ exit 0
|
|
|
e3c68b |
%endif
|
|
|
e3c68b |
|
|
|
e3c68b |
%if ( 0%{!?_without_server:1} )
|
|
|
e3c68b |
-%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
e3c68b |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
|
|
e3c68b |
%postun ganesha
|
|
|
e3c68b |
semanage boolean -m ganesha_use_fusefs --off
|
|
|
e3c68b |
exit 0
|
|
|
e3c68b |
@@ -1087,7 +1092,7 @@ exit 0
|
|
|
e3c68b |
## All %%trigger should be placed here and keep them sorted
|
|
|
e3c68b |
##
|
|
|
e3c68b |
%if ( 0%{!?_without_server:1} )
|
|
|
e3c68b |
-%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
e3c68b |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
|
|
e3c68b |
%trigger ganesha -- selinux-policy-targeted
|
|
|
e3c68b |
semanage boolean -m ganesha_use_fusefs --on
|
|
|
e3c68b |
exit 0
|
|
|
e3c68b |
@@ -1098,7 +1103,7 @@ exit 0
|
|
|
e3c68b |
## All %%triggerun should be placed here and keep them sorted
|
|
|
e3c68b |
##
|
|
|
e3c68b |
%if ( 0%{!?_without_server:1} )
|
|
|
e3c68b |
-%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
e3c68b |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
|
|
e3c68b |
%triggerun ganesha -- selinux-policy-targeted
|
|
|
e3c68b |
semanage boolean -m ganesha_use_fusefs --off
|
|
|
e3c68b |
exit 0
|
|
|
e3c68b |
--
|
|
|
e3c68b |
1.8.3.1
|
|
|
e3c68b |
|