diff --git a/SPECS/insights-client.spec b/SPECS/insights-client.spec index 6762f0c..5e8779b 100644 --- a/SPECS/insights-client.spec +++ b/SPECS/insights-client.spec @@ -3,7 +3,7 @@ Name: insights-client Summary: Uploads Insights information to Red Hat on a periodic basis Version: 3.1.7 -Release: 8%{?dist} +Release: 9%{?dist} Source0: https://github.com/RedHatInsights/insights-client/releases/download/v%{version}/insights-client-%{version}.tar.gz Epoch: 0 License: GPLv2+ @@ -42,6 +42,7 @@ BuildRequires: python3-devel BuildRequires: platform-python-devel BuildRequires: systemd BuildRequires: pam +Requires(post): policycoreutils-python-utils %description @@ -78,6 +79,8 @@ if [ -d %{_sysconfdir}/motd.d ]; then fi fi +semanage permissive --add insights_client_t + %preun %systemd_preun %{name}.timer %systemd_preun %{name}.service @@ -88,6 +91,10 @@ fi %systemd_postun %{name}.service %systemd_postun %{name}-boot.service +if [ $1 -eq 0 ]; then + %{_sbindir}/semanage permissive -d insights_client_t || true +fi + # Clean up files created by insights-client that are unowned by the RPM if [ $1 -eq 0 ]; then rm -f %{_sysconfdir}/cron.daily/insights-client @@ -124,6 +131,9 @@ fi %changelog +* Fri Nov 11 2022 Alba Hita Catala 0:3.1.7-9 +- Set SELinux policy to permissive for insights_client_t module (RHBZ#2143309) + * Wed Apr 13 2022 Link Dupont 0:3.1.7-8 - Ensure __python3 macro is globally set to platform-python (RHBZ#2069282)