From 6b5e17d380ef4c385d36c18626a1df6c7b75b31febc7652696f3985fa3ba7e16 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 30 Dec 2021 17:00:24 +0000 Subject: [PATCH] Accepting request 943237 from home:dspinella:branches:security:netfilter - Only use nftables backend when iptables-backend-nft is installed when using libalternatives OBS-URL: https://build.opensuse.org/request/show/943237 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=150 --- iptables.changes | 6 ++++++ iptables.spec | 43 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/iptables.changes b/iptables.changes index 65b2d89..4e94cea 100644 --- a/iptables.changes +++ b/iptables.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 30 15:05:20 UTC 2021 - Danilo Spinella + +- Only use nftables backend when iptables-backend-nft is installed + when using libalternatives + ------------------------------------------------------------------- Fri Nov 19 11:17:27 UTC 2021 - Danilo Spinella diff --git a/iptables.spec b/iptables.spec index cbd2a54..af7fbf0 100644 --- a/iptables.spec +++ b/iptables.spec @@ -339,7 +339,18 @@ fi %ghost %_sysconfdir/alternatives/ip6tables-restore %ghost %_sysconfdir/alternatives/ip6tables-save %else -%_datadir/libalternatives/ +%_datadir/libalternatives/ip6tables/1.conf +%dir %_datadir/libalternatives/ip6tables +%_datadir/libalternatives/ip6tables-restore/1.conf +%dir %_datadir/libalternatives/ip6tables-restore +%_datadir/libalternatives/ip6tables-save/1.conf +%dir %_datadir/libalternatives/ip6tables-save +%_datadir/libalternatives/iptables/1.conf +%dir %_datadir/libalternatives/iptables +%_datadir/libalternatives/iptables-restore/1.conf +%dir %_datadir/libalternatives/iptables-restore +%_datadir/libalternatives/iptables-save/1.conf +%dir %_datadir/libalternatives/iptables-save %endif %_sbindir/iptables %_sbindir/iptables-restore @@ -362,15 +373,39 @@ fi %ghost %_sysconfdir/alternatives/ebtables %ghost %_sysconfdir/alternatives/ebtables-restore %ghost %_sysconfdir/alternatives/ebtables-save -%else -%_datadir/libalternatives/ -%endif %_sbindir/iptables %_sbindir/iptables-restore %_sbindir/iptables-save %_sbindir/ip6tables %_sbindir/ip6tables-restore %_sbindir/ip6tables-save +%else +%_datadir/libalternatives/arptables/2.conf +%dir %_datadir/libalternatives/arptables +%_datadir/libalternatives/arptables-restore/2.conf +%dir %_datadir/libalternatives/arptables-restore +%_datadir/libalternatives/arptables-save/2.conf +%dir %_datadir/libalternatives/arptables-save +%_datadir/libalternatives/ebtables/2.conf +%dir %_datadir/libalternatives/ebtables +%_datadir/libalternatives/ebtables-restore/2.conf +%dir %_datadir/libalternatives/ebtables-restore +%_datadir/libalternatives/ebtables-save/2.conf +%dir %_datadir/libalternatives/ebtables-save +%_datadir/libalternatives/ip6tables/2.conf +%dir %_datadir/libalternatives/ip6tables +%_datadir/libalternatives/ip6tables-restore/2.conf +%dir %_datadir/libalternatives/ip6tables-restore +%_datadir/libalternatives/ip6tables-save/2.conf +%dir %_datadir/libalternatives/ip6tables-save +%_datadir/libalternatives/iptables/2.conf +%dir %_datadir/libalternatives/iptables +%_datadir/libalternatives/iptables-restore/2.conf +%dir %_datadir/libalternatives/iptables-restore +%_datadir/libalternatives/iptables-save/2.conf +%dir %_datadir/libalternatives/iptables-save +%_datadir/libalternatives/iptables-save/2.conf +%endif %_sbindir/arptables %_sbindir/arptables-restore %_sbindir/arptables-save