Home
last modified time | relevance | path

Searched refs:CAP_PERFMON (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/tools/perf/util/
Dcap.h12 #ifndef CAP_PERFMON
13 #define CAP_PERFMON 38 macro
Dutil.c333 if (!used_root && perf_cap__capable(CAP_PERFMON, &used_root)) in perf_event_paranoid_check()
/linux-6.12.1/tools/testing/selftests/bpf/
Dcap_helpers.h8 #ifndef CAP_PERFMON
9 #define CAP_PERFMON 38 macro
Dtest_loader.c732 1ULL << CAP_PERFMON | 1ULL << CAP_BPF); in drop_capabilities()
Dtest_verifier.c74 1ULL << CAP_PERFMON | \
/linux-6.12.1/Documentation/admin-guide/
Dperf-security.rst69 Unprivileged processes with enabled CAP_PERFMON capability are treated
72 checks in the kernel. CAP_PERFMON implements the principle of least
80 use cases is discouraged with respect to the CAP_PERFMON capability.
82 API contain denial records of acquiring both CAP_PERFMON and CAP_SYS_ADMIN
83 capabilities then providing the process with CAP_PERFMON capability singly
92 CAP_SYS_PTRACE capability is not required and CAP_PERFMON is enough to
150 Using a libcap without support for CAP_PERFMON will make cap_get_flag(caps, 38,
158 To get kernel and user samples with a perf binary with just CAP_PERFMON.
169 inherent processes with CAP_PERFMON and other required capabilities so that
175 1. Create shell script that uses capsh utility [16]_ to assign CAP_PERFMON
[all …]
/linux-6.12.1/include/uapi/linux/
Dcapability.h381 #define CAP_PERFMON 38 macro
/linux-6.12.1/include/linux/
Dcapability.h197 return capable(CAP_PERFMON) || capable(CAP_SYS_ADMIN); in perfmon_capable()
Dbpf.h2350 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_ptr_leaks()
2355 return bpf_token_capable(token, CAP_PERFMON); in bpf_allow_uninit_stack()
2360 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v1()
2365 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v4()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dverifier.c236 ret = cap_disable_effective(1ULL << CAP_SYS_ADMIN | 1ULL << CAP_PERFMON, NULL); in test_verifier_mtu()
Dtc_bpf.c408 ret = cap_disable_effective(1ULL << CAP_SYS_ADMIN | 1ULL << CAP_PERFMON, NULL); in tc_bpf_non_root()
Dtoken.c60 (1ULL << CAP_PERFMON) | in drop_priv_caps()
/linux-6.12.1/Documentation/trace/
Duser_events.rst20 requires CAP_PERFMON due to the event persisting, otherwise -EPERM is returned.
92 process closes or unregisters the event. Requires CAP_PERFMON otherwise
180 event that persists requires CAP_PERFMON, otherwise -EPERM is returned. When
/linux-6.12.1/tools/perf/Documentation/
Dsecurity.txt131 can be limited for superuser or CAP_PERFMON or CAP_SYS_ADMIN privileged
144 without CAP_PERFMON or CAP_SYS_ADMIN Linux capability.
Dperf-amd-ibs.txt37 CAP_SYS_ADMIN or CAP_PERFMON privilege.
Dperf-intel-pt.txt788 which in turn requires CAP_PERFMON or CAP_SYS_ADMIN.
/linux-6.12.1/drivers/media/rc/
Dbpf-lirc.c113 if (bpf_token_capable(prog->aux->token, CAP_PERFMON)) in lirc_mode2_func_proto()
/linux-6.12.1/Documentation/admin-guide/sysctl/
Dkernel.rst933 users (without CAP_PERFMON). The default value is 2.
939 with respect to CAP_PERFMON use cases.
948 ``CAP_PERFMON``.
950 Disallow raw tracepoint access by users without ``CAP_PERFMON``.
952 >=1 Disallow CPU event access by users without ``CAP_PERFMON``.
954 >=2 Disallow kernel profiling by users without ``CAP_PERFMON``.
/linux-6.12.1/tools/bpf/bpftool/
Dfeature.c1052 capability(CAP_PERFMON), in handle_perms()
/linux-6.12.1/tools/perf/
Dbuiltin-ftrace.c70 if (perf_cap__capable(CAP_PERFMON, &used_root)) in check_ftrace_capable()
Ddesign.txt264 all events on CPU-x. Per CPU counters need CAP_PERFMON or CAP_SYS_ADMIN
/linux-6.12.1/kernel/bpf/
Dhelpers.c2005 if (!bpf_token_capable(prog->aux->token, CAP_PERFMON)) in bpf_base_func_proto()
Dsyscall.c2706 if (is_perfmon_prog_type(type) && !bpf_token_capable(token, CAP_PERFMON)) in bpf_prog_load()
5908 return !bpf_token_capable(prog->aux->token, CAP_PERFMON) in syscall_prog_func_proto()
/linux-6.12.1/net/core/
Dfilter.c11896 if (!bpf_token_capable(prog->aux->token, CAP_PERFMON)) in bpf_sk_base_func_proto()