Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: select NFNETLINK when enabling NF_TABLES

In Kconfig, nf_tables depends on NFNETLINK so building nf_tables as
a module or inside kernel depends on the state of NFNETLINK inside
the kernel config. If someone wants to build nf_tables inside the
kernel, it is necessary to also build NFNETLINK inside the kernel.
But NFNETLINK can not be set in the menu so it is necessary to
toggle other nfnetlink subsystems such as logging and nfacct to see
the nf_tables switch.

This patch changes the dependency from 'depend' to 'select' inside
Kconfig to allow to set the build of nftables as modules or inside
kernel independently.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Eric Leblond and committed by
Pablo Neira Ayuso
5f291c28 99473751

+1 -1
+1 -1
net/netfilter/Kconfig
··· 414 414 endif # NF_CONNTRACK 415 415 416 416 config NF_TABLES 417 - depends on NETFILTER_NETLINK 417 + select NETFILTER_NETLINK 418 418 tristate "Netfilter nf_tables support" 419 419 420 420 config NFT_EXTHDR