From: patchwork-bot+netdevbpf@kernel.org
To: Mykyta Yatsenko <mykyta.yatsenko5@gmail.com>
Cc: bpf@vger.kernel.org, ast@kernel.org, andrii@kernel.org,
daniel@iogearbox.net, kafai@meta.com, kernel-team@meta.com,
eddyz87@gmail.com, olsajiri@gmail.com, yonghong.song@linux.dev,
yatsenko@meta.com
Subject: Re: [PATCH bpf-next v6 0/4] Support freplace prog from user namespace
Date: Mon, 17 Mar 2025 20:50:37 +0000 [thread overview]
Message-ID: <174224463701.3909531.2342481420951215606.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20250317174039.161275-1-mykyta.yatsenko5@gmail.com>
Hello:
This series was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Mon, 17 Mar 2025 17:40:35 +0000 you wrote:
> From: Mykyta Yatsenko <yatsenko@meta.com>
>
> Freplace programs can't be loaded from user namespace, as
> bpf_program__set_attach_target() requires searching for target prog BTF,
> which is locked under CAP_SYS_ADMIN.
> This patch set enables this use case by:
> 1. Relaxing capable check in bpf's BPF_BTF_GET_FD_BY_ID, check for CAP_BPF
> instead of CAP_SYS_ADMIN, support BPF token in attr argument.
> 2. Pass BPF token around libbpf from bpf_program__set_attach_target() to
> bpf syscall where capable check is.
> 3. Validate positive/negative scenarios in selftests
>
> [...]
Here is the summary with links:
- [bpf-next,v6,1/4] bpf: BPF token support for BPF_BTF_GET_FD_BY_ID
https://git.kernel.org/bpf/bpf-next/c/0de445d18e36
- [bpf-next,v6,2/4] bpf: return prog btf_id without capable check
https://git.kernel.org/bpf/bpf-next/c/07651ccda9ff
- [bpf-next,v6,3/4] libbpf: pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID
https://git.kernel.org/bpf/bpf-next/c/974ef9f0d23e
- [bpf-next,v6,4/4] selftests/bpf: test freplace from user namespace
https://git.kernel.org/bpf/bpf-next/c/a024843d92cc
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2025-03-17 20:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-17 17:40 [PATCH bpf-next v6 0/4] Support freplace prog from user namespace Mykyta Yatsenko
2025-03-17 17:40 ` [PATCH bpf-next v6 1/4] bpf: BPF token support for BPF_BTF_GET_FD_BY_ID Mykyta Yatsenko
2025-03-17 17:40 ` [PATCH bpf-next v6 2/4] bpf: return prog btf_id without capable check Mykyta Yatsenko
2025-03-17 17:40 ` [PATCH bpf-next v6 3/4] libbpf: pass BPF token from find_prog_btf_id to BPF_BTF_GET_FD_BY_ID Mykyta Yatsenko
2025-03-17 17:40 ` [PATCH bpf-next v6 4/4] selftests/bpf: test freplace from user namespace Mykyta Yatsenko
2025-03-17 20:50 ` patchwork-bot+netdevbpf [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=174224463701.3909531.2342481420951215606.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=kafai@meta.com \
--cc=kernel-team@meta.com \
--cc=mykyta.yatsenko5@gmail.com \
--cc=olsajiri@gmail.com \
--cc=yatsenko@meta.com \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox