CAP_PERFMON for BPF
Showing the changes to include/uapi/linux (1 of 10 files). Show all
Unified · Split
| @@ -367,8 +367,14 @@ struct vfs_ns_cap_data { · 366 unmodified lines | ||
| 367 | 367 | |
| 368 | 368 | #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_READ | |
| 377 | +#define CAP_LAST_CAP CAP_PERFMON | |
| 372 | 378 | |
| 373 | 379 | #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) |
| 374 | 380 | |