summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-03-19 17:57:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-28 18:40:17 +0200
commitc9ea2f8af67399904fe9c72ab5192a0c0ae7f2bf (patch)
tree1710af4664f3eb4f8d529a0fda0de8b9fdc214fa /include/linux
parentcbb5420a2fc021a8827bdf06ec38828bf1b43dc8 (diff)
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 'include/linux')
0 files changed, 0 insertions, 0 deletions