diff options
author | Vit Mojzis <vmojzis@redhat.com> | 2025-05-30 16:37:46 +0000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-06-06 10:46:40 +0200 |
commit | a2088fef360ee262c19186470d63875b32f80917 (patch) | |
tree | 324338366a86277b0aa27ea6e34ee997e3153f7e | |
parent | d21bcd9f7c70d1be09a923ad366cdf883112e431 (diff) | |
download | passt-a2088fef360ee262c19186470d63875b32f80917.tar passt-a2088fef360ee262c19186470d63875b32f80917.tar.gz passt-a2088fef360ee262c19186470d63875b32f80917.tar.bz2 passt-a2088fef360ee262c19186470d63875b32f80917.tar.lz passt-a2088fef360ee262c19186470d63875b32f80917.tar.xz passt-a2088fef360ee262c19186470d63875b32f80917.tar.zst passt-a2088fef360ee262c19186470d63875b32f80917.zip |
fedora: Depend on SELinux tools and policy version, drop circular dependency
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>
-rw-r--r-- | contrib/fedora/passt.spec | 21 |
1 files 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). |