summaryrefslogtreecommitdiff
path: root/arch/x86/net
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-03-20 03:57:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-28 19:24:50 +0300
commitb4e02202a0ba47d7ba546ae681f66ed68e69d459 (patch)
tree2fd76d4e73d6a622b16302c784dc659a064e5426 /arch/x86/net
parent3e1130970ec38bae0d4dd2a38678e563f092f7b3 (diff)
downloadlinux-b4e02202a0ba47d7ba546ae681f66ed68e69d459.tar.xz
bpf: skip unnecessary capability check
commit 0fa4fe85f4724fff89b09741c437cbee9cf8b008 upstream. The current check statement in BPF syscall will do a capability check for CAP_SYS_ADMIN before checking sysctl_unprivileged_bpf_disabled. This code path will trigger unnecessary security hooks on capability checking and cause false alarms on unprivileged process trying to get CAP_SYS_ADMIN access. This can be resolved by simply switch the order of the statement and CAP_SYS_ADMIN is not required anyway if unprivileged bpf syscall is allowed. Signed-off-by: Chenbo Feng <fengc@google.com> Acked-by: Lorenzo Colitti <lorenzo@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/net')
0 files changed, 0 insertions, 0 deletions