• Pablo Neira Ayuso's avatar
    netfilter: remove nf_conntrack_helper sysctl and modparam toggles · b1185090
    Pablo Neira Ayuso authored
    __nf_ct_try_assign_helper() remains in place but it now requires a
    template to configure the helper.
    
    A toggle to disable automatic helper assignment was added by:
    
      a9006892 ("netfilter: nf_ct_helper: allow to disable automatic helper assignment")
    
    in 2012 to address the issues described in "Secure use of iptables and
    connection tracking helpers". Automatic conntrack helper assignment was
    disabled by:
    
      3bb398d9 ("netfilter: nf_ct_helper: disable automatic helper assignment")
    
    back in 2016.
    
    This patch removes the sysctl and modparam toggles, users now have to
    rely on explicit conntrack helper configuration via ruleset.
    
    Update tools/testing/selftests/netfilter/nft_conntrack_helper.sh to
    check that auto-assignment does not happen anymore.
    Acked-by: default avatarAaron Conole <aconole@redhat.com>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    b1185090
conntrack.h 2.24 KB