• Florian Westphal's avatar
    netfilter: xtables: allow xtables-nft only builds · a9525c7f
    Florian Westphal authored
    Add hidden IP(6)_NF_IPTABLES_LEGACY symbol.
    
    When any of the "old" builtin tables are enabled the "old" iptables
    interface will be supported.
    
    To disable the old set/getsockopt interface the existing options
    for the builtin tables need to be turned off:
    
    CONFIG_IP_NF_IPTABLES=m
    CONFIG_IP_NF_FILTER is not set
    CONFIG_IP_NF_NAT is not set
    CONFIG_IP_NF_MANGLE is not set
    CONFIG_IP_NF_RAW is not set
    CONFIG_IP_NF_SECURITY is not set
    
    Same for CONFIG_IP6_NF_ variants.
    
    This allows to build a kernel that only supports ip(6)tables-nft
    (iptables-over-nftables api).
    
    In the future the _LEGACY symbol will become visible and the select
    statements will be turned into 'depends on', but for now be on safe side
    so "make oldconfig" won't break things.
    Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
    a9525c7f
Kconfig 53.4 KB