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