From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id C062C5A065C; Wed, 06 May 2026 15:23:23 +0200 (CEST) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v10 22/23] fedora: Install pesto, its SELinux policy, and the man page from the spec file Date: Wed, 6 May 2026 15:23:22 +0200 Message-ID: <20260506132323.1751386-23-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260506132323.1751386-1-sbrivio@redhat.com> References: <20260506132323.1751386-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GEW4L3JJHQFKPSPJERFHLI5ZDKV3MRS7 X-Message-ID-Hash: GEW4L3JJHQFKPSPJERFHLI5ZDKV3MRS7 X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Jon Maloy , David Gibson , Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 }}} -- 2.43.0