From 87fc84b811d7c8325145686b64c6885056235aeb Mon Sep 17 00:00:00 2001 From: Peridot Bot <rockyautomation@rockylinux.org> Date: Thu, 22 Jun 2023 16:35:19 +0000 Subject: [PATCH] import passt-0%5e20230222.g4ddbcb9-4.el9_2 --- .passt.metadata | 2 +- SPECS/passt.spec | 42 +++++++++++++++++++++++++----------------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.passt.metadata b/.passt.metadata index 2092824..3bb1f5b 100644 --- a/.passt.metadata +++ b/.passt.metadata @@ -1 +1 @@ -f0d7edae2c421217fd15a72ce7b552656ce4ed16 SOURCES/passt-4ddbcb9c0c555838b123c018a9ebc9b7e14a87e5.tar.xz +63e1388a021a47f83ca46a91482182573a5c8ea41335e1bb4d7f4e1cc75b1c87 SOURCES/passt-4ddbcb9c0c555838b123c018a9ebc9b7e14a87e5.tar.xz diff --git a/SPECS/passt.spec b/SPECS/passt.spec index 6a9b56d..04a0fc7 100644 --- a/SPECS/passt.spec +++ b/SPECS/passt.spec @@ -12,7 +12,7 @@ Name: passt Version: 0^20230222.g4ddbcb9 -Release: 2%{?dist} +Release: 4%{?dist} Summary: User-mode networking daemons for virtual machines and namespaces License: AGPLv3+ and BSD Group: System Environment/Daemons @@ -38,7 +38,6 @@ Patch16: 0016-tcp-Clamp-MSS-value-when-queueing-data-to-tap-also-f.patch Patch17: 0017-contrib-selinux-Drop-example-from-headers-this-is-th.patch Patch18: 0018-contrib-selinux-Drop-unused-passt_read_data-interfac.patch Patch19: 0019-contrib-selinux-Split-interfaces-into-smaller-bits.patch -Patch20: 0020-fedora-Install-SELinux-interface-files-to-shared-inc.patch BuildRequires: gcc, make, git, checkpolicy, selinux-policy-devel Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype}) @@ -83,23 +82,25 @@ ln -sr %{buildroot}%{_mandir}/man1/pasta.1 %{buildroot}%{_mandir}/man1/pasta.avx pushd contrib/selinux make -f %{_datadir}/selinux/devel/Makefile -install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/passt.pp -install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/contrib/passt.if -install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/pasta.pp -install -p -m 644 -D pasta.if %{buildroot}%{_datadir}/selinux/devel/include/contrib/pasta.if +install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp +install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/passt.if +install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp popd %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_relabel_post -s %{selinuxtype} +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/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} %files @@ -121,13 +122,20 @@ semodule -r pasta 2>/dev/null || : %endif %files selinux -%dir %{_datadir}/selinux/packages/%{name} -%{_datadir}/selinux/packages/%{name}/passt.pp -%{_datadir}/selinux/devel/include/contrib/passt.if -%{_datadir}/selinux/packages/%{name}/pasta.pp -%{_datadir}/selinux/devel/include/contrib/pasta.if +%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp +%{_datadir}/selinux/devel/include/distributed/passt.if +%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %changelog +* Sun Jun 11 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230222.g4ddbcb9-4 +- Drop (pointless) patches 20, 21, 22, actually apply changes to the spec file! +- Refresh SELinux labels in scriptlets, require -selinux package (rhbz#2183089) +- Don't install useless SELinux interface file for pasta (rhbz#2183106) + +* Fri Apr 28 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230222.g4ddbcb9-3 +- Refresh SELinux labels in scriptlets, require -selinux package (rhbz#2183089) +- Don't install useless SELinux interface file for pasta (rhbz#2183106) + * Thu Mar 16 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230222.g4ddbcb9-2 - udp: Actually use host resolver to forward DNS queries (rhbz#2177075) - conf: Split add_dns{4,6}() out of get_dns() (rhbz#2177075) -- GitLab