diff options
author | Phil Sutter <phil@nwl.cc> | 2022-02-16 17:55:38 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-03-03 17:20:51 +0300 |
commit | f1082dd31fe461d482d69da2a8eccfeb7bf07ac2 (patch) | |
tree | 519cb55a648168589a29f361e1e69d63f3d0936d /net/netfilter/nf_flow_table_core.c | |
parent | bbfbf7a5e77e4c899982c7df4cf3197cb6f99be4 (diff) | |
download | linux-f1082dd31fe461d482d69da2a8eccfeb7bf07ac2.tar.xz |
netfilter: nf_tables: Reject tables of unsupported family
An nftables family is merely a hollow container, its family just a
number and such not reliant on compile-time options other than nftables
support itself. Add an artificial check so attempts at using a family
the kernel can't support fail as early as possible. This helps user
space detect kernels which lack e.g. NFPROTO_INET.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_flow_table_core.c')
0 files changed, 0 insertions, 0 deletions