diff options
| author | Tejun Heo <[email protected]> | 2023-03-02 19:42:59 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-03 06:37:07 +0000 |
| commit | c501bf55c88b834adefda870c7c092ec9052a437 (patch) | |
| tree | 92fae07fc76e2f63bb24b759b5337b915a409f2b /tools/testing/selftests/bpf/prog_tests/timer.c | |
| parent | bpf, docs: Fix final bpf docs build failure (diff) | |
| download | kernel-c501bf55c88b834adefda870c7c092ec9052a437.tar.gz kernel-c501bf55c88b834adefda870c7c092ec9052a437.zip | |
bpf: Make bpf_get_current_[ancestor_]cgroup_id() available for all program types
These helpers are safe to call from any context and there's no reason to
restrict access to them. Remove them from bpf_trace and filter lists and add
to bpf_base_func_proto() under perfmon_capable().
v2: After consulting with Andrii, relocated in bpf_base_func_proto() so that
they require bpf_capable() but not perfomon_capable() as it doesn't read
from or affect others on the system.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/timer.c')
0 files changed, 0 insertions, 0 deletions
