[Devel] [PATCH RHEL7 COMMIT] ve/net: Allow conntrack allocation if a rule with xt_CT target is inserted

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 7 00:00:07 PST 2016


The commit is pushed to "branch-rh7-3.10.0-493.vz7.25.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-493.el7
------>
commit e016f04ace44962a9d8a13cb27f3e9139b270c53
Author: Kirill Tkhai <ktkhai at virtuozzo.com>
Date:   Mon Nov 7 12:00:07 2016 +0400

    ve/net: Allow conntrack allocation if a rule with xt_CT target is inserted
    
    To be merged to commit 894c8a374856
    "net: Mark conntrack users in xtables"
    
    https://jira.sw.ru/browse/PSBM-54823
    
    Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 net/netfilter/xt_CT.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c
index 06a694f..7bff162 100644
--- a/net/netfilter/xt_CT.c
+++ b/net/netfilter/xt_CT.c
@@ -248,6 +248,7 @@ static int xt_ct_tg_check(const struct xt_tgchk_param *par,
 	}
 	__set_bit(IPS_CONFIRMED_BIT, &ct->status);
 	nf_conntrack_get(&ct->ct_general);
+	allow_conntrack_allocation(par->net);
 out:
 	info->ct = ct;
 	return 0;


More information about the Devel mailing list