Searched hist:"395 fc4fa33e98944384d0d6c8b3ecd9fb4b50d00" (Results 1 – 3 of 3) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | bpf.h | diff 395fc4fa33e98944384d0d6c8b3ecd9fb4b50d00 Fri Jul 29 22:27:27 CEST 2022 Joe Burton <jevburton@google.com> libbpf: Add bpf_obj_get_opts()
Add an extensible variant of bpf_obj_get() capable of setting the `file_flags` parameter.
This parameter is needed to enable unprivileged access to BPF maps. Without a method like this, users must manually make the syscall.
Signed-off-by: Joe Burton <jevburton@google.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220729202727.3311806-1-jevburton.kernel@gmail.com
|
H A D | bpf.c | diff 395fc4fa33e98944384d0d6c8b3ecd9fb4b50d00 Fri Jul 29 22:27:27 CEST 2022 Joe Burton <jevburton@google.com> libbpf: Add bpf_obj_get_opts()
Add an extensible variant of bpf_obj_get() capable of setting the `file_flags` parameter.
This parameter is needed to enable unprivileged access to BPF maps. Without a method like this, users must manually make the syscall.
Signed-off-by: Joe Burton <jevburton@google.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220729202727.3311806-1-jevburton.kernel@gmail.com
|
H A D | libbpf.map | diff 395fc4fa33e98944384d0d6c8b3ecd9fb4b50d00 Fri Jul 29 22:27:27 CEST 2022 Joe Burton <jevburton@google.com> libbpf: Add bpf_obj_get_opts()
Add an extensible variant of bpf_obj_get() capable of setting the `file_flags` parameter.
This parameter is needed to enable unprivileged access to BPF maps. Without a method like this, users must manually make the syscall.
Signed-off-by: Joe Burton <jevburton@google.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220729202727.3311806-1-jevburton.kernel@gmail.com
|