From 82523bc8a78c89f19de3c162aaab71bd29a239ae Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 6 May 2026 03:32:21 +0200 Subject: fedora: Install pesto, its SELinux policy, and the man page from the spec file It's time to ship it in packages. Signed-off-by: Stefano Brivio Reviewed-by: Laurent Vivier --- contrib/fedora/passt.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index 38b06b0..34838af 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -4,6 +4,9 @@ # PASTA - Pack A Subtle Tap Abstraction # for network namespace/tap device mode # +# PESTO - Programmable Extensible Socket Translation Orchestrator +# front-end for passt(1) and pasta(1) forwarding configuration +# # Copyright (c) 2022 Red Hat GmbH # Author: Stefano Brivio @@ -51,7 +54,8 @@ Requires(post): container-selinux Requires(post): selinux-policy-%{selinuxtype} %description selinux -This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1). +This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1), +pesto(1). %prep %setup -q -n passt-%{git_hash} @@ -90,17 +94,18 @@ install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{selinux 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 install -p -m 644 -D passt-repair.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp +install -p -m 644 -D pesto.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp popd %pre selinux %selinux_relabel_pre -s %{selinuxtype} %post selinux -%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp %{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp %postun selinux if [ $1 -eq 0 ]; then - %selinux_modules_uninstall -s %{selinuxtype} passt pasta passt-repair + %selinux_modules_uninstall -s %{selinuxtype} passt pasta passt-repair pesto fi %posttrans selinux @@ -115,10 +120,12 @@ fi %{_bindir}/pasta %{_bindir}/qrap %{_bindir}/passt-repair +%{_bindir}/pesto %{_mandir}/man1/passt.1* %{_mandir}/man1/pasta.1* %{_mandir}/man1/qrap.1* %{_mandir}/man1/passt-repair.1* +%{_mandir}/man1/pesto.1* %ifarch x86_64 %{_bindir}/passt.avx2 %{_mandir}/man1/passt.avx2.1* @@ -131,6 +138,7 @@ fi %{_datadir}/selinux/devel/include/distributed/passt.if %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp %{_datadir}/selinux/packages/%{selinuxtype}/passt-repair.pp +%{_datadir}/selinux/packages/%{selinuxtype}/pesto.pp %changelog {{{ passt_git_changelog }}} -- cgit v1.2.3