xtables: extend matches and targets with .usersize
authorWillem de Bruijn <willemb@google.com>
Mon, 2 Jan 2017 22:19:46 +0000 (17:19 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Jan 2017 16:24:55 +0000 (17:24 +0100)
commitec23189049651b16dc2ffab35a4371dc1f491aca
treeabf3c783fb73b147f463fa686715a08fd2a969c1
parent4915f7bbc402071539ec0cb8c75aad878c982402
xtables: extend matches and targets with .usersize

In matches and targets that define a kernel-only tail to their
xt_match and xt_target data structs, add a field .usersize that
specifies up to where data is to be shared with userspace.

Performed a search for comment "Used internally by the kernel" to find
relevant matches and targets. Manually inspected the structs to derive
a valid offsetof.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
14 files changed:
net/bridge/netfilter/ebt_limit.c
net/ipv4/netfilter/ipt_CLUSTERIP.c
net/ipv6/netfilter/ip6t_NPT.c
net/netfilter/xt_CT.c
net/netfilter/xt_RATEEST.c
net/netfilter/xt_TEE.c
net/netfilter/xt_bpf.c
net/netfilter/xt_cgroup.c
net/netfilter/xt_connlimit.c
net/netfilter/xt_hashlimit.c
net/netfilter/xt_limit.c
net/netfilter/xt_quota.c
net/netfilter/xt_rateest.c
net/netfilter/xt_string.c