]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: consolidate EPERM to non-root users master
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Apr 2026 11:05:18 +0000 (13:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Apr 2026 15:51:39 +0000 (17:51 +0200)
commitc347693fe81b5e52c64b9c131ea4c76f2797a3ac
tree353a92fa1ccbaa63f75f6fa0ebdadf198d013ecd
parente8f9ff0d6c101cb2db204dbe6edcbdf7c6ff674c
main: consolidate EPERM to non-root users

Move the check added by 3cfb9e4b3e40 ("src: report EPERM for non-root users")
to the main function.

EPERM is also possible when removing a ruleset that is owned by a
process, tone it down to suggest that root is maybe needed.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/libnftables.c
src/main.c