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

netfilter: nfnetlink_acct: report overquota to the right netns

We should report the over quota message to the right net namespace
instead of the init netns.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Liping Zhang and committed by
Pablo Neira Ayuso
aca30018 2497b846

+8 -7
+1 -1
net/netfilter/xt_nfacct.c
··· 26 26 27 27 nfnl_acct_update(skb, info->nfacct); 28 28 29 - overquota = nfnl_acct_overquota(skb, info->nfacct); 29 + overquota = nfnl_acct_overquota(par->net, skb, info->nfacct); 30 30 31 31 return overquota == NFACCT_UNDERQUOTA ? false : true; 32 32 }