commit | e5cab728c40be88c541f68e4601d39178c36111f | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Sun Jul 14 10:49:28 2019 +0200 |
committer | Florian Westphal <fw@strlen.de> | Mon Jul 15 12:26:36 2019 +0200 |
tree | b38dc7111501a000ed652e59487a87ed2137796a | |
parent | 5f5399f11345eebd21d5596bd39d8aed9cfccc52 [diff] |
nft: exit in case we can't fetch current genid When running iptables -nL as non-root user, iptables would loop indefinitely. With this change, it will fail with iptables v1.8.3 (nf_tables): Could not fetch rule set generation id: Permission denied (you must be root) Reported-by: Amish <anon.amish@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>