diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-22 05:21:58 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-24 21:58:57 +0300 |
commit | 8c2d45b2b65ca1f215244be1c600236e83f9815f (patch) | |
tree | 9d1e3ba2f9f85469583c0af71dc528329a3425fe /.cocciconfig | |
parent | 749f6f6843115b424680f1aada3c0dd613ad807c (diff) | |
download | linux-8c2d45b2b65ca1f215244be1c600236e83f9815f.tar.xz |
netfilter: nf_tables: Allow set back-ends to report partial overlaps on insertion
Currently, the -EEXIST return code of ->insert() callbacks is ambiguous: it
might indicate that a given element (including intervals) already exists as
such, or that the new element would clash with existing ones.
If identical elements already exist, the front-end is ignoring this without
returning error, in case NLM_F_EXCL is not set. However, if the new element
can't be inserted due an overlap, we should report this to the user.
To this purpose, allow set back-ends to return -ENOTEMPTY on collision with
existing elements, translate that to -EEXIST, and return that to userspace,
no matter if NLM_F_EXCL was set.
Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions