* [PATCH bpf-next] selftests/bpf: allow unpriv bpf for selftests by default
@ 2022-11-16 1:54 Eduard Zingerman
2022-11-16 5:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Eduard Zingerman @ 2022-11-16 1:54 UTC (permalink / raw)
To: bpf, ast; +Cc: andrii, daniel, kernel-team, yhs, Eduard Zingerman
Enable unprivileged bpf for selftests kernel by default.
This forces CI to run test_verifier tests in both privileged
and unprivileged modes.
The test_verifier.c:do_test uses sysctl kernel.unprivileged_bpf_disabled
to decide whether to run or to skip test cases in unprivileged mode.
The CONFIG_BPF_UNPRIV_DEFAULT_OFF controls the default value of the
kernel.unprivileged_bpf_disabled.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
---
tools/testing/selftests/bpf/config | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config
index 7a99a6728169..f9034ea00bc9 100644
--- a/tools/testing/selftests/bpf/config
+++ b/tools/testing/selftests/bpf/config
@@ -8,6 +8,7 @@ CONFIG_BPF_LIRC_MODE2=y
CONFIG_BPF_LSM=y
CONFIG_BPF_STREAM_PARSER=y
CONFIG_BPF_SYSCALL=y
+CONFIG_BPF_UNPRIV_DEFAULT_OFF=n
CONFIG_CGROUP_BPF=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_SHA256=y
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH bpf-next] selftests/bpf: allow unpriv bpf for selftests by default
2022-11-16 1:54 [PATCH bpf-next] selftests/bpf: allow unpriv bpf for selftests by default Eduard Zingerman
@ 2022-11-16 5:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-11-16 5:40 UTC (permalink / raw)
To: Eduard Zingerman; +Cc: bpf, ast, andrii, daniel, kernel-team, yhs
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Wed, 16 Nov 2022 03:54:56 +0200 you wrote:
> Enable unprivileged bpf for selftests kernel by default.
> This forces CI to run test_verifier tests in both privileged
> and unprivileged modes.
>
> The test_verifier.c:do_test uses sysctl kernel.unprivileged_bpf_disabled
> to decide whether to run or to skip test cases in unprivileged mode.
> The CONFIG_BPF_UNPRIV_DEFAULT_OFF controls the default value of the
> kernel.unprivileged_bpf_disabled.
>
> [...]
Here is the summary with links:
- [bpf-next] selftests/bpf: allow unpriv bpf for selftests by default
https://git.kernel.org/bpf/bpf-next/c/5b1d640800de
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-16 5:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16 1:54 [PATCH bpf-next] selftests/bpf: allow unpriv bpf for selftests by default Eduard Zingerman
2022-11-16 5:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox