55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
|
From 5ad4711f40c0e8ab7c196ac1c9025bf78b8b94e0 Mon Sep 17 00:00:00 2001
|
||
|
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
||
|
Date: Thu, 18 Nov 2021 09:21:56 -0500
|
||
|
Subject: [PATCH 611/611] SELinux: Fix boolean management, again
|
||
|
|
||
|
When upgrading from a version of the package that does not include
|
||
|
the previous fix this means the flawed scriptlet is still executed,
|
||
|
undoing the setting of the boolean.
|
||
|
|
||
|
In order to work the boolean needs to be set in %posttrans. This is
|
||
|
a temporary change that can (or should) be removed in the next version
|
||
|
of RHGS, i.e. 3.5.7.
|
||
|
|
||
|
Issue: https://github.com/gluster/glusterfs/issues/2522
|
||
|
Resolves: rhbz#1973566
|
||
|
Resolves: rhbz#1975400
|
||
|
|
||
|
Label: DOWNSTREAM ONLY
|
||
|
|
||
|
BUG: 1973566
|
||
|
Change-Id: Ida39a3ee5e6b4b0d3255bfef95601890afd80709
|
||
|
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
||
|
Reviewed-on: https://code.engineering.redhat.com/gerrit/c/rhs-glusterfs/+/292189
|
||
|
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
||
|
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
||
|
---
|
||
|
glusterfs.spec.in | 11 +++++++++++
|
||
|
1 file changed, 11 insertions(+)
|
||
|
|
||
|
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
||
|
index 8b6646f..87176c9 100644
|
||
|
--- a/glusterfs.spec.in
|
||
|
+++ b/glusterfs.spec.in
|
||
|
@@ -1123,6 +1123,17 @@ exit 0
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
+%if ( 0%{!?_without_server:1} )
|
||
|
+%if ( ( 0%{?fedora} && 0%{?fedora} > 25 ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
||
|
+# temporary fix to be removed in the next version (i.e. RHGS 3.5.7). This
|
||
|
+# is only needed when upgrading from the flawed versions (e.g. RHGS 3.5.5
|
||
|
+# and earlier.)
|
||
|
+%posttrans ganesha
|
||
|
+semanage boolean -m ganesha_use_fusefs --on -S targeted
|
||
|
+exit 0
|
||
|
+%endif
|
||
|
+%endif
|
||
|
+
|
||
|
##-----------------------------------------------------------------------------
|
||
|
## All %%files should be placed here and keep them grouped
|
||
|
##
|
||
|
--
|
||
|
1.8.3.1
|
||
|
|