public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Cc: Petr Lautrbach <lautrbach@redhat.com>,
	"Richard W.M. Jones" <rjones@redhat.com>,
	Vit Mojzis <vmojzis@redhat.com>
Subject: [PATCH] fedora: Depend on SELinux tools and policy version, drop circular dependency
Date: Wed,  4 Jun 2025 17:30:25 +0200	[thread overview]
Message-ID: <20250604153025.185495-1-sbrivio@redhat.com> (raw)

From: Vit Mojzis <vmojzis@redhat.com>

From an original patch by Vit Mojzis: add dependencies on SELinux
userspace tools and recommend the latest available version of the
policy as of now.

Drop circular dependency between passt and passt-selinux: passt
requires passt-selinux, so passt-selinux shouldn't require passt.

Link: https://src.fedoraproject.org/rpms/passt/pull-request/3
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 contrib/fedora/passt.spec | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec
index 0abb2fa..e7feaf8 100644
--- a/contrib/fedora/passt.spec
+++ b/contrib/fedora/passt.spec
@@ -9,6 +9,7 @@
 
 %global git_hash {{{ git_head }}}
 %global selinuxtype targeted
+%global selinux_policy_version 41.41
 
 Name:		passt
 Version:	{{{ git_version }}}
@@ -33,15 +34,17 @@ for network namespaces: traffic is forwarded using a tap interface inside the
 namespace, without the need to create further interfaces on the host, hence not
 requiring any capabilities or privileges.
 
-%package    selinux
-BuildArch:  noarch
-Summary:    SELinux support for passt and pasta
-Requires:   %{name} = %{version}-%{release}
-Requires:   selinux-policy
-Requires(post): %{name}
-Requires(post): policycoreutils
-Requires(preun): %{name}
-Requires(preun): policycoreutils
+%package		selinux
+BuildArch:		noarch
+Summary:		SELinux support for passt and pasta
+Requires:		selinux-policy-%{selinuxtype}
+Requires(post):		selinux-policy-%{selinuxtype}
+Requires(post):		policycoreutils
+Requires(post):		libselinux-utils
+Requires(preun):	policycoreutils
+BuildRequires:		selinux-policy-devel
+BuildRequires:		pkgconfig(systemd)
+Recommends:		selinux-policy-%{selinuxtype} >= %{selinux_policy_version}
 
 %description selinux
 This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1).
-- 
@@ -9,6 +9,7 @@
 
 %global git_hash {{{ git_head }}}
 %global selinuxtype targeted
+%global selinux_policy_version 41.41
 
 Name:		passt
 Version:	{{{ git_version }}}
@@ -33,15 +34,17 @@ for network namespaces: traffic is forwarded using a tap interface inside the
 namespace, without the need to create further interfaces on the host, hence not
 requiring any capabilities or privileges.
 
-%package    selinux
-BuildArch:  noarch
-Summary:    SELinux support for passt and pasta
-Requires:   %{name} = %{version}-%{release}
-Requires:   selinux-policy
-Requires(post): %{name}
-Requires(post): policycoreutils
-Requires(preun): %{name}
-Requires(preun): policycoreutils
+%package		selinux
+BuildArch:		noarch
+Summary:		SELinux support for passt and pasta
+Requires:		selinux-policy-%{selinuxtype}
+Requires(post):		selinux-policy-%{selinuxtype}
+Requires(post):		policycoreutils
+Requires(post):		libselinux-utils
+Requires(preun):	policycoreutils
+BuildRequires:		selinux-policy-devel
+BuildRequires:		pkgconfig(systemd)
+Recommends:		selinux-policy-%{selinuxtype} >= %{selinux_policy_version}
 
 %description selinux
 This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1).
-- 
2.43.0


                 reply	other threads:[~2025-06-04 15:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250604153025.185495-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=lautrbach@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=rjones@redhat.com \
    --cc=vmojzis@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).