Home
last modified time | relevance | path

Searched hist:"395 fc4fa33e98944384d0d6c8b3ecd9fb4b50d00" (Results 1 – 3 of 3) sorted by relevance

/linux/tools/lib/bpf/
H A Dbpf.hdiff 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 Dbpf.cdiff 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 Dlibbpf.mapdiff 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