History

Merge tag 'perf-for-bpf-2020-05-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into bpf-next

CAP_PERFMON for BPF

Alexei Starovoitov committed 6 years ago

Commit f87b87a2 parents a085a1e 980737210 files · +145 −4Browse files

Showing the changes to include/uapi/linux (1 of 10 files). Show all

Unified · Split

include/uapi/linux/capability.h+7−1
@@ -367,8 +367,14 @@ struct vfs_ns_cap_data { · 366 unmodified lines
367 367
368#define CAP_AUDIT_READ 37368#define CAP_AUDIT_READ 37
369 369
370/*
371 * Allow system performance and observability privileged operations
372 * using perf_events, i915_perf and other kernel subsystems
373 */
374
375#define CAP_PERFMON 38
370 376
371#define CAP_LAST_CAP CAP_AUDIT_READ377#define CAP_LAST_CAP CAP_PERFMON
372 378
373#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)379#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
374 380