From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=danishpraka.sh Authentication-Results: passt.top; dkim=pass (2048-bit key; unprotected) header.d=danishpraka.sh header.i=@danishpraka.sh header.a=rsa-sha256 header.s=fm1 header.b=TJPnS4I/; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=XcS4laHe; dkim-atps=neutral Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) by passt.top (Postfix) with ESMTPS id 412525A0271 for ; Fri, 21 Nov 2025 13:49:12 +0100 (CET) Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 51DC81400206; Fri, 21 Nov 2025 07:49:11 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 21 Nov 2025 07:49:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danishpraka.sh; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm1; t=1763729351; x= 1763815751; bh=tA9Gwj07xUQ7slM3J1B8STXf7x72cC1CecvfFr83JWI=; b=T JPnS4I/dLAhhO/zLUT4B4aQ27jNCcNpTICXqvd6U/Pvj68wPip+ztxQFQkdtqL8X NHz0J5O/KDyFMvI4zSCTxzDPmBRL2KEQyo6MAjlRhCPzxWv8UXyOw4IOQbZ7xl/p cRv/LHozPl6jvbm5pli5DEQGDIKkMZ5uWAlGxORdTXRy57KIRw11O4GmckbLQo5s wybznFuDRGtOdgOZkVgkS8a2eumg+Dm8MXa0pQ7fGqgw/iu1gsOmmXnN8lgvV25Z +VmgeRr/1mtXYUzgYx5R7grC2dJJfWJzAGzTAT7pdGKlBulKinuvupsbGYhtHLEf qfPSdJrrONJn13oHyba8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1763729351; x=1763815751; bh=t A9Gwj07xUQ7slM3J1B8STXf7x72cC1CecvfFr83JWI=; b=XcS4laHebfyIMqtZT Te9NkBS4jrxwdqXnrikiYinGRe7mG0+i25PNtAih0BbamXrSj5OkQ07WRCvawHdB EJDXa4Ib+POtui9NDTy4sys3CFL1v4TvcBCmuAD0tA6LkE4aR9ExWFM1ZhUgwjpi QxMAYDiRL4aqCttZLRj7JXVJ/BrIgoMzBq85a9trNTBThH6wQZjdoa1iGT6RgQGO MiAFIhw3fGQXYms0QSPbYeexbkqYwtpwfG0dLMaGkn/7IqYbwDxYONkLkhvL9hcB 1gU7kz9HK+3OYTfhArt8HxL244MwXZitt6lk2pRRkRiSnpKp9A+zxNEm/U2f0+ev 8e/WA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvvdelleelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeffrghnihhshhcurfhrrghkrghshhcuoegtohhnthgrtghtsegu rghnihhshhhprhgrkhgrrdhshheqnecuggftrfgrthhtvghrnheptdevvdelteduheehud eitedtveetvedukeeltdfghfeuudehveefkeegueetueegnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheptghonhhtrggtthesuggrnhhishhhph hrrghkrgdrshhhpdhnsggprhgtphhtthhopeeipdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehprghsshhtqdguvghvsehprghsshhtrdhtohhppdhrtghpthhtohepshgsrh hivhhiohesrhgvughhrghtrdgtohhmpdhrtghpthhtohepghhithesmhgrgigthhgvrhhn ohhffhdrtggrpdhrtghpthhtohepphhhohhliihinhhgsehrvgguhhgrthdrtghomhdprh gtphhtthhopehvmhhojhiiihhssehrvgguhhgrthdrtghomhdprhgtphhtthhopegtohhn thgrtghtsegurghnihhshhhprhgrkhgrrdhshh X-ME-Proxy: Feedback-ID: i59a6483a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 Nov 2025 07:49:08 -0500 (EST) From: Danish Prakash To: passt-dev@passt.top Subject: [PATCH v2] spec: use %selinux_requires_min macro, drop overlapping dependencies Date: Fri, 21 Nov 2025 18:17:46 +0530 Message-ID: <20251121124842.459206-1-contact@danishpraka.sh> X-Mailer: git-send-email 2.51.0 In-Reply-To: <4c552ad9-ab11-4011-aee8-1f9f1246f863@redhat.com> References: <4c552ad9-ab11-4011-aee8-1f9f1246f863@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MailFrom: contact@danishpraka.sh X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: 4Z4BT3BCLNSLFH4CNZEWFRENYVR2FF4E X-Message-ID-Hash: 4Z4BT3BCLNSLFH4CNZEWFRENYVR2FF4E X-Mailman-Approved-At: Fri, 21 Nov 2025 14:51:01 +0100 CC: sbrivio@redhat.com, git@maxchernoff.ca, pholzing@redhat.com, vmojzis@redhat.com, Danish Prakash 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: Also, drop unused preun policycoreutils requires, and Recommends on selinux-policy-%{targeted}, it has since been added to %selinux_requires_min. Signed-off-by: Danish Prakash --- contrib/fedora/passt.spec | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/contrib/fedora/passt.spec b/contrib/fedora/passt.spec index d1bcf4a74338..bcbe1f77bb6c 100644 --- a/contrib/fedora/passt.spec +++ b/contrib/fedora/passt.spec @@ -34,19 +34,21 @@ 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: selinux-policy-%{selinuxtype} -Requires: container-selinux -Requires(post): selinux-policy-%{selinuxtype} +%package selinux +BuildArch: noarch +Summary: SELinux support for passt and pasta +%if 0%{?fedora} >= 43 +BuildRequires: selinux-policy-devel +%selinux_requires_min +%else +BuildRequires: pkgconfig(systemd) +Requires(post): libselinux-utils +Requires(post): policycoreutils +%endif +Requires: container-selinux +Requires: selinux-policy-%{selinuxtype} Requires(post): container-selinux -Requires(post): policycoreutils -Requires(post): libselinux-utils -Requires(preun): policycoreutils -BuildRequires: selinux-policy-devel -BuildRequires: pkgconfig(systemd) -Recommends: selinux-policy-%{selinuxtype} >= %{selinux_policy_version} +Requires(post): selinux-policy-%{selinuxtype} %description selinux This package adds SELinux enforcement to passt(1), pasta(1), passt-repair(1). -- 2.51.0