Re: [PATCH bpf-next v4 1/2] bpftool: Use appropriate permissions for map access

2025-06-20 Thread patchwork-bot+netdevbpf
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov :

On Sat, 21 Jun 2025 01:18:11 +1000 you wrote:
> Modify several functions in tools/bpf/bpftool/common.c to allow
> specification of requested access for file descriptors, such as
> read-only access.
> 
> Update bpftool to request only read access for maps when write
> access is not required. This fixes errors when reading from maps
> that are protected from modification via security_bpf_map.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v4,1/2] bpftool: Use appropriate permissions for map access
https://git.kernel.org/bpf/bpf-next/c/d32179e8c258
  - [bpf-next,v4,2/2] selftests/bpf: Add test for bpftool access to read-only 
protected maps
https://git.kernel.org/bpf/bpf-next/c/f8b19aeca165

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





Re: [PATCH bpf-next v4 1/2] bpftool: Use appropriate permissions for map access

2025-06-20 Thread Quentin Monnet
2025-06-21 01:18 UTC+1000 ~ Slava Imameev 
> Modify several functions in tools/bpf/bpftool/common.c to allow
> specification of requested access for file descriptors, such as
> read-only access.
> 
> Update bpftool to request only read access for maps when write
> access is not required. This fixes errors when reading from maps
> that are protected from modification via security_bpf_map.
> 
> Signed-off-by: Slava Imameev 

Reviewed-by: Quentin Monnet 

Thanks!