]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: Allow table names of up to 255 chars
authorPhil Sutter <phil@nwl.cc>
Thu, 27 Jul 2017 14:56:41 +0000 (16:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Jul 2017 18:41:57 +0000 (20:41 +0200)
commit52af4532dadb6faf1cb23ec9879313bc4f2ef7de
tree8f5688c722893d30b0083365c7b01d01a03e56c0
parent166209aebfb8c4df3081a26f91ad41266084e963
netfilter: nf_tables: Allow table names of up to 255 chars

Allocate all table names dynamically to allow for arbitrary lengths but
introduce NFT_NAME_MAXLEN as an upper sanity boundary. It's value was
chosen to allow using a domain name as per RFC 1035.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_trace.c