diff options
author | Jiri Benc <jbenc@redhat.com> | 2021-09-23 10:40:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-06 15:42:34 +0200 |
commit | 753096c38aa9ffe8b7b7853b29eee3708a69ae27 (patch) | |
tree | feaeb96e8534887ef609ed25a7fbb2cbea4b4e4b /net/unix/af_unix.c | |
parent | 897d1401d1d60e28b2a7edbcc4fc9d2e03b729c3 (diff) |
selftests, bpf: test_lwt_ip_encap: Really disable rp_filter
[ Upstream commit 79e2c306667542b8ee2d9a9d947eadc7039f0a3c ]
It's not enough to set net.ipv4.conf.all.rp_filter=0, that does not override
a greater rp_filter value on the individual interfaces. We also need to set
net.ipv4.conf.default.rp_filter=0 before creating the interfaces. That way,
they'll also get their own rp_filter value of zero.
Fixes: 0fde56e4385b0 ("selftests: bpf: add test_lwt_ip_encap selftest")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/b1cdd9d469f09ea6e01e9c89a6071c79b7380f89.1632386362.git.jbenc@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions