Re: [PATCH bpf] bpf: respect CAP_IPC_LOCK in RLIMIT_MEMLOCK check

2019-09-16 Thread Christian Barcenas
On 9/11/19 8:18 PM, Christian Barcenas wrote: A process can lock memory addresses into physical RAM explicitly (via mlock, mlockall, shmctl, etc.) or implicitly (via VFIO, perf ring-buffers, bpf maps, etc.), subject to RLIMIT_MEMLOCK limits. CAP_IPC_LOCK allows a process to exceed these limits

[PATCH bpf] bpf: respect CAP_IPC_LOCK in RLIMIT_MEMLOCK check

2019-09-11 Thread Christian Barcenas
+CAP_IPC_LOCK behavior. Fixes: aaac3ba95e4c ("bpf: charge user for creation of BPF maps and programs") Signed-off-by: Christian Barcenas --- kernel/bpf/syscall.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 27