Skip to content

Commit

Permalink
selftests/bpf: set unlimited RLIMIT_MEMLOCK for test_sock_fields
Browse files Browse the repository at this point in the history
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: e0b27b3 ("bpf: Add test_sock_fields for skb->sk and bpf_tcp_sock")
Signed-off-by: Yonghong Song <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
  • Loading branch information
yonghong-song authored and borkmann committed Mar 2, 2019
1 parent 4269f69 commit a83de90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/bpf/test_sock_fields.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <bpf/libbpf.h>

#include "cgroup_helpers.h"
#include "bpf_rlimit.h"

enum bpf_array_idx {
SRV_IDX,
Expand Down

0 comments on commit a83de90

Please sign in to comment.