Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package passt for openSUSE:Factory checked 
in at 2024-09-13 14:27:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/passt (Old)
 and      /work/SRC/openSUSE:Factory/.passt.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "passt"

Fri Sep 13 14:27:36 2024 rev:16 rq:1200293 version:20240906.6b38f07

Changes:
--------
--- /work/SRC/openSUSE:Factory/passt/passt.changes      2024-09-10 
21:12:50.061040120 +0200
+++ /work/SRC/openSUSE:Factory/.passt.new.29891/passt.changes   2024-09-13 
14:31:16.248187747 +0200
@@ -1,0 +2,6 @@
+Thu Sep 12 11:08:38 UTC 2024 - Cathy Hu <cathy...@suse.com>
+
+- Fix passt-selinux to use selinux macros instead of calling semodule
+  by hand, which leads to unwanted policy reload on Micro (bsc#1229132)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ passt.spec ++++++
--- /var/tmp/diff_new_pack.Kfrwts/_old  2024-09-13 14:31:16.928216114 +0200
+++ /var/tmp/diff_new_pack.Kfrwts/_new  2024-09-13 14:31:16.928216114 +0200
@@ -43,6 +43,7 @@
 %endif
 %endif
 
+%global selinuxtype targeted
 Name:           passt
 Version:        20240906.6b38f07
 Release:        0
@@ -135,13 +136,21 @@
 %endif
 
 %if %{with selinux}
+%pre selinux
+%selinux_relabel_pre -s %{selinuxtype}
+
 %post selinux
-semodule -i %{_datadir}/selinux/packages/%{name}/passt.pp 2>/dev/null || :
-semodule -i %{_datadir}/selinux/packages/%{name}/pasta.pp 2>/dev/null || :
+%selinux_modules_install -s %{selinuxtype} 
%{_datadir}/selinux/packages/%{name}/passt.pp
+%selinux_modules_install -s %{selinuxtype} 
%{_datadir}/selinux/packages/%{name}/pasta.pp
+
+%postun selinux
+if [ $1 -eq 0 ]; then
+       %selinux_modules_uninstall -s %{selinuxtype} passt
+       %selinux_modules_uninstall -s %{selinuxtype} pasta
+fi
 
-%preun selinux
-semodule -r passt 2>/dev/null || :
-semodule -r pasta 2>/dev/null || :
+%posttrans selinux
+%selinux_relabel_post -s %{selinuxtype}
 %endif
 
 %files

Reply via email to