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)
commite46abbcc05aa8a16b0e7f5c94e86d11af9aa2770
tree8f5688c722893d30b0083365c7b01d01a03e56c0
parent2cf0c8b3e6942ecafe6ebb1a6d0328a81641bf39
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