Commit 07651cc
bpf: Return prog btf_id without capable check
Return prog's btf_id from bpf_prog_get_info_by_fd regardless of capable
check. This patch enables scenario, when freplace program, running
from user namespace, requires to query target prog's btf.
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20250317174039.161275-3-mykyta.yatsenko5@gmail.com1 parent 0de445d commit 07651cc
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4732 | 4732 | | |
4733 | 4733 | | |
4734 | 4734 | | |
| 4735 | + | |
| 4736 | + | |
4735 | 4737 | | |
4736 | 4738 | | |
4737 | 4739 | | |
| |||
4878 | 4880 | | |
4879 | 4881 | | |
4880 | 4882 | | |
4881 | | - | |
4882 | | - | |
4883 | 4883 | | |
4884 | 4884 | | |
4885 | 4885 | | |
| |||
0 commit comments