import CS passt-0^20230222.g4ddbcb9-4.el9_2
This commit is contained in:
parent
292a41ef26
commit
c3cd574d4a
@ -1,40 +0,0 @@
|
|||||||
From 61676035ec5f58df4f4cca024c772d7e0b43d7dc Mon Sep 17 00:00:00 2001
|
|
||||||
From: Stefano Brivio <sbrivio@redhat.com>
|
|
||||||
Date: Fri, 10 Mar 2023 19:10:01 +0100
|
|
||||||
Subject: [PATCH 20/20] fedora: Install SELinux interface files to shared
|
|
||||||
include directory
|
|
||||||
|
|
||||||
Link: https://github.com/fedora-selinux/selinux-policy/pull/1613
|
|
||||||
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
|
|
||||||
(cherry picked from commit 70c0765b49e19b76639908a7686d8f795ba3ed24)
|
|
||||||
---
|
|
||||||
contrib/fedora/passt.spec | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
|
|
||||||
index 7f67bee..51cad90 100644
|
|
||||||
--- a/contrib/fedora/passt.spec
|
|
||||||
+++ b/contrib/fedora/passt.spec
|
|
||||||
@@ -61,7 +61,9 @@ 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
|
|
||||||
popd
|
|
||||||
|
|
||||||
%post selinux
|
|
||||||
@@ -93,7 +95,9 @@ semodule -r pasta 2>/dev/null || :
|
|
||||||
%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
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
{{{ passt_git_changelog }}}
|
|
||||||
--
|
|
||||||
2.39.2
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: passt
|
Name: passt
|
||||||
Version: 0^20230222.g4ddbcb9
|
Version: 0^20230222.g4ddbcb9
|
||||||
Release: 2%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: User-mode networking daemons for virtual machines and namespaces
|
Summary: User-mode networking daemons for virtual machines and namespaces
|
||||||
License: AGPLv3+ and BSD
|
License: AGPLv3+ and BSD
|
||||||
Group: System Environment/Daemons
|
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
|
Patch17: 0017-contrib-selinux-Drop-example-from-headers-this-is-th.patch
|
||||||
Patch18: 0018-contrib-selinux-Drop-unused-passt_read_data-interfac.patch
|
Patch18: 0018-contrib-selinux-Drop-unused-passt_read_data-interfac.patch
|
||||||
Patch19: 0019-contrib-selinux-Split-interfaces-into-smaller-bits.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
|
BuildRequires: gcc, make, git, checkpolicy, selinux-policy-devel
|
||||||
Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy-%{selinuxtype})
|
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
|
pushd contrib/selinux
|
||||||
make -f %{_datadir}/selinux/devel/Makefile
|
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.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/contrib/passt.if
|
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/%{name}/pasta.pp
|
install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
install -p -m 644 -D pasta.if %{buildroot}%{_datadir}/selinux/devel/include/contrib/pasta.if
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%pre selinux
|
%pre selinux
|
||||||
%selinux_relabel_pre -s %{selinuxtype}
|
%selinux_relabel_pre -s %{selinuxtype}
|
||||||
|
|
||||||
%post selinux
|
%post selinux
|
||||||
semodule -i %{_datadir}/selinux/packages/%{name}/passt.pp 2>/dev/null || :
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
semodule -i %{_datadir}/selinux/packages/%{name}/pasta.pp 2>/dev/null || :
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
|
||||||
|
|
||||||
%preun selinux
|
%postun selinux
|
||||||
semodule -r passt 2>/dev/null || :
|
if [ $1 -eq 0 ]; then
|
||||||
semodule -r pasta 2>/dev/null || :
|
%selinux_modules_uninstall -s %{selinuxtype} passt
|
||||||
|
%selinux_modules_uninstall -s %{selinuxtype} pasta
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans selinux
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -121,13 +122,20 @@ semodule -r pasta 2>/dev/null || :
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files selinux
|
%files selinux
|
||||||
%dir %{_datadir}/selinux/packages/%{name}
|
%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
%{_datadir}/selinux/packages/%{name}/passt.pp
|
%{_datadir}/selinux/devel/include/distributed/passt.if
|
||||||
%{_datadir}/selinux/devel/include/contrib/passt.if
|
%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
%{_datadir}/selinux/packages/%{name}/pasta.pp
|
|
||||||
%{_datadir}/selinux/devel/include/contrib/pasta.if
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Mar 16 2023 Stefano Brivio <sbrivio@redhat.com> - 0^20230222.g4ddbcb9-2
|
||||||
- udp: Actually use host resolver to forward DNS queries (rhbz#2177075)
|
- udp: Actually use host resolver to forward DNS queries (rhbz#2177075)
|
||||||
- conf: Split add_dns{4,6}() out of get_dns() (rhbz#2177075)
|
- conf: Split add_dns{4,6}() out of get_dns() (rhbz#2177075)
|
||||||
|
Loading…
Reference in New Issue
Block a user