]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netfilter: ctnetlink: reject new conntrack request with different l4proto
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 8 Aug 2016 14:10:26 +0000 (22:10 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Aug 2016 08:39:26 +0000 (10:39 +0200)
commitaa0c2c68abd1e2915656cc81afdb195bc8595dec
tree357b67f1a5a9e7339701af9b3dbce83f026c9f5a
parent00a3101f561816e58de054a470484996f78eb5eb
netfilter: ctnetlink: reject new conntrack request with different l4proto

Currently, user can add a conntrack with different l4proto via nfnetlink.
For example, original tuple is TCP while reply tuple is SCTP. This is
invalid combination, we should report EINVAL to userspace.

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