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