summaryrefslogtreecommitdiffstats
path: root/init/initramfs.c
diff options
context:
space:
mode:
authorChenbo Feng2018-03-20 01:57:27 +0100
committerDaniel Borkmann2018-03-20 23:50:39 +0100
commit0fa4fe85f4724fff89b09741c437cbee9cf8b008 (patch)
tree38f02d936f9ef5b3e9fe9af90f8565c76d16e91a /init/initramfs.c
parenttrace/bpf: remove helper bpf_perf_prog_read_value from tracepoint type programs (diff)
downloadkernel-qcow2-linux-0fa4fe85f4724fff89b09741c437cbee9cf8b008.tar.gz
kernel-qcow2-linux-0fa4fe85f4724fff89b09741c437cbee9cf8b008.tar.xz
kernel-qcow2-linux-0fa4fe85f4724fff89b09741c437cbee9cf8b008.zip
bpf: skip unnecessary capability check
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>
Diffstat (limited to 'init/initramfs.c')
0 files changed, 0 insertions, 0 deletions