]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: do not blindly change rlimit in reuseport net selftest
authorEric Dumazet <edumazet@google.com>
Sat, 6 Oct 2018 02:38:46 +0000 (19:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Oct 2018 08:30:55 +0000 (10:30 +0200)
commit3bc7e146a4524082b0f74561974a33a76156cbcb
tree34c246bea7c2c7a7b737e879118098bb521b797a
parent603a85ed0e1f7782ee75231544bfcf21ca0f5f2a
bpf: do not blindly change rlimit in reuseport net selftest

If the current process has unlimited RLIMIT_MEMLOCK,
we should should leave it as is.

Fixes: 336a8a34c9b8 ("bpf: fix rlimit in reuseport net selftest")
Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/net/reuseport_bpf.c