diff --git a/SPECS/rhc.spec b/SPECS/rhc.spec
index 8e974cf..3056954 100644
--- a/SPECS/rhc.spec
+++ b/SPECS/rhc.spec
@@ -8,7 +8,7 @@
Name: rhc
Version: 0.2.1
-Release: 9%{?dist}
+Release: 10%{?dist}
Epoch: 1
Summary: rhc connects the system to Red Hat hosted services
License: GPLv3
@@ -29,6 +29,8 @@ ExclusiveArch: %{go_arches}
Recommends: insights-client
+Requires(post): policycoreutils-python-utils
+
BuildRequires: git
BuildRequires: golang
BuildRequires: go-rpm-macros
@@ -114,6 +116,16 @@ make %{makeflags} \
install
+%post
+/usr/sbin/semanage permissive --add rhcd_t || true
+
+
+%postun
+if [ $1 -eq 0 ]; then
+ /usr/sbin/semanage permissive --delete rhcd_t || true
+fi
+
+
%files
%doc %{name}-%{version}/README.md yggdrasil-%{yggdrasil_ver}/doc/tags.toml
%{_bindir}/%{name}
@@ -131,6 +143,9 @@ make %{makeflags} \
%changelog
+* Thu Nov 10 2022 Link Dupont - 0.2.1-10
+- Set SELinux policy to permissive for rhcd_t module (RHBZ#2141445)
+
* Fri Jun 03 2022 Link Dupont - 0.2.1-9
- Correct config file installation name (RHBZ#2082689)