Re: [PATCH bpf-next] samples/bpf: adjust rlimit RLIMIT_MEMLOCK for sampleip

2017-12-21 Thread Daniel Borkmann
On 12/21/2017 10:49 AM, Prashant Bhole wrote: > The default memlock rlimit is 64KB, which causes failure in > creating a map > > For example: > test@test# ./sampleip > failed to create a map: 1 Operation not permitted > ERROR: loading BPF program (errno 1): > Try: ulimit -l unlimited > > Signed-o

[PATCH bpf-next] samples/bpf: adjust rlimit RLIMIT_MEMLOCK for sampleip

2017-12-21 Thread Prashant Bhole
The default memlock rlimit is 64KB, which causes failure in creating a map For example: test@test# ./sampleip failed to create a map: 1 Operation not permitted ERROR: loading BPF program (errno 1): Try: ulimit -l unlimited Signed-off-by: Prashant Bhole --- samples/bpf/sampleip_user.c | 17 +