]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: be more strict when NF_CONNTRACK_MARK is not set
authorRomain Bellan <romain.bellan@wifirst.fr>
Fri, 27 Mar 2020 08:26:32 +0000 (09:26 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Mar 2020 00:05:36 +0000 (02:05 +0200)
commit0a5d895ea0d427554a777c64cdaad109284ee814
treeaf6bce3af0c1176b5a4e780717708b20e1913d0c
parenta4bfd6ab3c9c8bdf0f6e7b2d417c87ef6fc0808c
netfilter: ctnetlink: be more strict when NF_CONNTRACK_MARK is not set

When CONFIG_NF_CONNTRACK_MARK is not set, any CTA_MARK or CTA_MARK_MASK
in netlink message are not supported. We should return an error when one
of them is set, not both

Fixes: 318295bea568 ("netfilter: ctnetlink: must check mark attributes vs NULL")
Signed-off-by: Romain Bellan <romain.bellan@wifirst.fr>
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_netlink.c