]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: set unlimited RLIMIT_MEMLOCK for test_sock_fields
authorYonghong Song <yhs@fb.com>
Fri, 1 Mar 2019 06:18:16 +0000 (22:18 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Sat, 2 Mar 2019 00:06:23 +0000 (01:06 +0100)
commit7ce5dec5d6bd38f1dca0e4a1fd23f3ef4e8636e2
treeb23f7873959753c4b1791afc851cda74e5782b75
parentbbc7feac8b9fb02600e841f28bf43562127f4f21
selftests/bpf: set unlimited RLIMIT_MEMLOCK for test_sock_fields

This is to avoid permission denied error. A lot of systems
may have a much lower number, e.g., 64KB, for RLIMIT_MEMLOCK,
which may not be sufficient for the test to run successfully.

Fixes: 06dd1ef5f349 ("bpf: Add test_sock_fields for skb->sk and bpf_tcp_sock")
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_sock_fields.c