OSDN Git Service

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)
commit262f9d811c7608f1e74258ceecfe1fa213bdf912
tree34c246bea7c2c7a7b737e879118098bb521b797a
parente2a322a0c8ce3d825e8a56c063ce3f81b719083c
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: 941ff6f11c02 ("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