17b94a
From bbf43008e6d21d649536547f500662b940562c3e Mon Sep 17 00:00:00 2001
17b94a
From: Sunny Kumar <sunkumar@redhat.com>
17b94a
Date: Mon, 11 May 2020 10:02:08 +0100
17b94a
Subject: [PATCH 373/375] build: geo-rep sub-pkg requires
17b94a
 policycoreutils-python-utils on rhel8
17b94a
17b94a
glusterfs-geo-replication sub-package requires policycoreutils-python-utils
17b94a
on rhel8 to set relevant selinux boolean to allow rsync.
17b94a
17b94a
Backport of:
17b94a
    >Upstream Patch: https://review.gluster.org/#/c/glusterfs/+/24433/
17b94a
    >Change-Id: Ia0fdcfdd8c7d18cd194e011f6b365bf5cb70a20a
17b94a
    >Fixes: #1236
17b94a
    >Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
17b94a
17b94a
BUG: 1825177
17b94a
Change-Id: Ia0fdcfdd8c7d18cd194e011f6b365bf5cb70a20a
17b94a
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/200242
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 glusterfs.spec.in | 6 ++++++
17b94a
 1 file changed, 6 insertions(+)
17b94a
17b94a
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
17b94a
index 5ed07e7..9def416 100644
17b94a
--- a/glusterfs.spec.in
17b94a
+++ b/glusterfs.spec.in
17b94a
@@ -523,6 +523,8 @@ Requires:         util-linux
17b94a
 Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
17b94a
 # required for setting selinux bools
17b94a
 %if ( 0%{?rhel} && 0%{?rhel} >= 8 )
17b94a
+Requires(post):      policycoreutils-python-utils
17b94a
+Requires(postun):    policycoreutils-python-utils
17b94a
 Requires:            selinux-policy-targeted
17b94a
 Requires(post):      selinux-policy-targeted
17b94a
 BuildRequires:       selinux-policy-devel
17b94a
@@ -1978,6 +1980,10 @@ fi
17b94a
 %endif
17b94a
 
17b94a
 %changelog
17b94a
+
17b94a
+* Mon May 11 2020 Sunny Kumar <sunkumar@redhat.com>
17b94a
+- added requires policycoreutils-python-utils on rhel8 for geo-replication
17b94a
+
17b94a
 * Tue Aug 27 2019 Hari Gowtham <hgowtham@redhat.com>
17b94a
 - Added scripts to collect machine stats and component stats (#1719171)
17b94a
 
17b94a
-- 
17b94a
1.8.3.1
17b94a