|
|
233933 |
From f410cd9f9b9455373a9612423558d8d0f83cd0fc Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: "Kaleb S. KEITHLEY" <kkeithle@redhat.com>
|
|
|
233933 |
Date: Wed, 12 Jul 2017 07:43:51 -0400
|
|
|
233933 |
Subject: [PATCH 070/124] packaging: glusterfs-ganesha update sometimes fails
|
|
|
233933 |
semanage
|
|
|
233933 |
|
|
|
233933 |
Depending on how dnf orders updates, the updated version of
|
|
|
233933 |
selinux-policy-targeted with ganesha_use_fusefs may not be updated
|
|
|
233933 |
before the glusterfs-ganesha update execute its %post scriptlet
|
|
|
233933 |
containing the `semanage ganesha_use_fusefs ...` command. In such
|
|
|
233933 |
situations the semanage command (silently) fails.
|
|
|
233933 |
|
|
|
233933 |
Use a %trigger (and %triggerun) to run the scriptlet (again) after
|
|
|
233933 |
selinux-policy-targeted with ganesha_use_fusefs has been installed
|
|
|
233933 |
or updated.
|
|
|
233933 |
|
|
|
233933 |
Note: the %triggerun is probably unnecessary, but it doesn't hurt.
|
|
|
233933 |
|
|
|
233933 |
The release-3.10 branch is the "upstream master" for the glusterfs-
|
|
|
233933 |
ganesha subpackage.
|
|
|
233933 |
|
|
|
233933 |
Note: to be merged after https://review.gluster.org/17806
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM ONLY
|
|
|
233933 |
|
|
|
233933 |
Change-Id: I1ad06d79fa1711e4abf038baf9f0a5b7bb665934
|
|
|
233933 |
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
|
|
|
233933 |
Reviewed-on: https://review.gluster.org/17756
|
|
|
233933 |
Smoke: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
|
|
|
233933 |
Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
233933 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/167155
|
|
|
233933 |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
glusterfs.spec.in | 22 ++++++++++++++++++++++
|
|
|
233933 |
1 file changed, 22 insertions(+)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
|
|
|
233933 |
index b01c94f..1d99a3d 100644
|
|
|
233933 |
--- a/glusterfs.spec.in
|
|
|
233933 |
+++ b/glusterfs.spec.in
|
|
|
233933 |
@@ -1077,6 +1077,28 @@ exit 0
|
|
|
233933 |
%endif
|
|
|
233933 |
|
|
|
233933 |
##-----------------------------------------------------------------------------
|
|
|
233933 |
+## All %%trigger should be placed here and keep them sorted
|
|
|
233933 |
+##
|
|
|
233933 |
+%if ( 0%{!?_without_server:1} )
|
|
|
233933 |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
233933 |
+%trigger ganesha -- selinux-policy-targeted
|
|
|
233933 |
+semanage boolean -m ganesha_use_fusefs --on
|
|
|
233933 |
+exit 0
|
|
|
233933 |
+%endif
|
|
|
233933 |
+%endif
|
|
|
233933 |
+
|
|
|
233933 |
+##-----------------------------------------------------------------------------
|
|
|
233933 |
+## All %%triggerun should be placed here and keep them sorted
|
|
|
233933 |
+##
|
|
|
233933 |
+%if ( 0%{!?_without_server:1} )
|
|
|
233933 |
+%if ( 0%{?fedora} && 0%{?fedora} > 25 )
|
|
|
233933 |
+%triggerun ganesha -- selinux-policy-targeted
|
|
|
233933 |
+semanage boolean -m ganesha_use_fusefs --off
|
|
|
233933 |
+exit 0
|
|
|
233933 |
+%endif
|
|
|
233933 |
+%endif
|
|
|
233933 |
+
|
|
|
233933 |
+##-----------------------------------------------------------------------------
|
|
|
233933 |
## All %%files should be placed here and keep them grouped
|
|
|
233933 |
##
|
|
|
233933 |
%files
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|