diff options
author | 2018-06-04 16:51:19 +0200 | |
---|---|---|
committer | 2018-06-06 14:01:00 +0200 | |
commit | cbdebe481a14b42c45aa9f4ceb5ff19b55de2c57 (patch) | |
tree | a62a6f19548cbd09b22c5800bf663aafe0945a7f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | netfilter: ipset: Limit max timeout value (diff) | |
download | wireguard-linux-cbdebe481a14b42c45aa9f4ceb5ff19b55de2c57.tar.xz wireguard-linux-cbdebe481a14b42c45aa9f4ceb5ff19b55de2c57.zip |
netfilter: ipset: forbid family for hash:mac sets
Userspace `ipset` command forbids family option for hash:mac type:
ipset create test hash:mac family inet4
ipset v6.30: Unknown argument: `family'
However, this check is not done in kernel itself. When someone use
external netlink applications (pyroute2 python library for example), one
can create hash:mac with invalid family and inconsistant results from
userspace (`ipset` command cannot read set content anymore).
This patch enforce the logic in kernel, and forbids insertion of
hash:mac with a family set.
Since IP_SET_PROTO_UNDEF is defined only for hash:mac, this patch has no
impact on other hash:* sets
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Victorien Molle <victorien.molle@wifirst.fr>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions