From fb4248387552bf4a3caff3ff4b7abbfb5c7421cf Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Mon, 25 Sep 2023 15:59:23 +0200 Subject: [PATCH] Fix the file path for the compiled SELinux policy Related: RHEL-22815 --- mysql-selinux.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql-selinux.spec b/mysql-selinux.spec index c8d715a..4c80c6f 100644 --- a/mysql-selinux.spec +++ b/mysql-selinux.spec @@ -39,15 +39,15 @@ make %install # install policy modules -install -d %{buildroot}%{_datadir}/selinux/packages -install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages +install -d %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype} +install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype} %pre %selinux_relabel_pre -s %{selinuxtype} %post -%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2 +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %postun if [ $1 -eq 0 ]; then @@ -60,7 +60,7 @@ fi %files %defattr(-,root,root,0755) -%attr(0644,root,root) %{_datadir}/selinux/packages/%{modulename}.pp.bz2 +%attr(0644,root,root) %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %ghost %verify(not mode md5 size mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} %license COPYING