summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-01-20 01:24:34 +0100
committerAlexei Starovoitov <ast@kernel.org>2018-01-19 18:37:00 -0800
commit2e4a30983b0f9b19b59e38bbf7427d7fdd480d98 (patch)
tree7a284360e27df66f12da60329433fd7fd787183e /ipc
parentfa9dd599b4dae841924b022768354cfde9affecb (diff)
downloadop-kernel-dev-2e4a30983b0f9b19b59e38bbf7427d7fdd480d98.zip
op-kernel-dev-2e4a30983b0f9b19b59e38bbf7427d7fdd480d98.tar.gz
bpf: restrict access to core bpf sysctls
Given BPF reaches far beyond just networking these days, it was never intended to allow setting and in some cases reading those knobs out of a user namespace root running without CAP_SYS_ADMIN, thus tighten such access. Also the bpf_jit_enable = 2 debugging mode should only be allowed if kptr_restrict is not set since it otherwise can leak addresses to the kernel log. Dump a note to the kernel log that this is for debugging JITs only when enabled. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud