summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_compat.c
diff options
context:
space:
mode:
authorTaehee Yoo2018-10-06 17:09:18 +0200
committerPablo Neira Ayuso2018-10-11 11:29:14 +0200
commitf24d2d4f9586985509320f90308723d3d0c4e47f (patch)
tree68d348b457149c90c47d3bf3ed93c09f5d178abc /net/netfilter/nft_compat.c
parentnetfilter: nft_osf: usage from output path is not valid (diff)
downloadkernel-qcow2-linux-f24d2d4f9586985509320f90308723d3d0c4e47f.tar.gz
kernel-qcow2-linux-f24d2d4f9586985509320f90308723d3d0c4e47f.tar.xz
kernel-qcow2-linux-f24d2d4f9586985509320f90308723d3d0c4e47f.zip
netfilter: xt_TEE: fix wrong interface selection
TEE netdevice notifier handler checks only interface name. however each netns can have same interface name. hence other netns's interface could be selected. test commands: %ip netns add vm1 %iptables -I INPUT -p icmp -j TEE --gateway 192.168.1.1 --oif enp2s0 %ip link set enp2s0 netns vm1 Above rule is in the root netns. but that rule could get enp2s0 ifindex of vm1 by notifier handler. After this patch, TEE rule is added to the per-netns list. Fixes: 9e2f6c5d78db ("netfilter: Rework xt_TEE netdevice notifier") Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_compat.c')
0 files changed, 0 insertions, 0 deletions