OSDN Git Service

netfilter: nfnetlink_queue: reject verdict request from different portid
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 8 Aug 2016 14:07:27 +0000 (22:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 11:06:10 +0000 (12:06 +0100)
commit2adda392d28baa25ca7803002fdafcaa95b7b1fb
treec3b111bb4ae2860824eae3cda4324dccbddfbd7d
parentd8f5cce0a8bce0decd125ef430ee6196692ff8da
netfilter: nfnetlink_queue: reject verdict request from different portid

commit 00a3101f561816e58de054a470484996f78eb5eb upstream.

Like NFQNL_MSG_VERDICT_BATCH do, we should also reject the verdict
request when the portid is not same with the initial portid(maybe
from another process).

Fixes: 97d32cf9440d ("netfilter: nfnetlink_queue: batch verdict support")
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nfnetlink_queue.c