Re: [PATCH v6 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-11 Thread Blaise Boscaccy
Song Liu writes: > On Mon, Mar 10, 2025 at 10:43 AM Blaise Boscaccy > wrote: >> >> Song Liu writes: >> >> > On Fri, Mar 7, 2025 at 5:33 PM Blaise Boscaccy >> > wrote: >> >> >> >> This test exercises the kernel flag added

[PATCH v7 bpf-next 0/2] security: Propagate caller information in bpf hooks

2025-03-11 Thread Blaise Boscaccy
-1-bbosca...@linux.microsoft.com/ - v3 https://lore.kernel.org/bpf/20250303222416.3909228-1-bbosca...@linux.microsoft.com/ - v2 https://lore.kernel.org/bpf/20250228165322.3121535-1-bbosca...@linux.microsoft.com/ - v1 https://lore.kernel.org/bpf/20250226003055.1654837-1-bbosca...@lin

Re: [PATCH v6 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Blaise Boscaccy
Song Liu writes: > On Fri, Mar 7, 2025 at 5:33 PM Blaise Boscaccy > wrote: >> >> This test exercises the kernel flag added to security_bpf by >> effectively blocking light-skeletons from loading while allowing >> normal skeletons to function as-is. Since this sho

[PATCH v7 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-10 Thread Blaise Boscaccy
: Blaise Boscaccy --- .../selftests/bpf/prog_tests/kernel_flag.c| 43 +++ .../selftests/bpf/progs/test_kernel_flag.c| 28 2 files changed, 71 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/kernel_flag.c create mode 100644 tools/testing

[PATCH v7 bpf-next 1/2] security: Propagate caller information in bpf hooks

2025-03-10 Thread Blaise Boscaccy
, by simply passing a boolean flag indicating whether or not the call originated in the kernel, in any hook that contains a bpf_attr struct that corresponds to a subcommand that may be called from the kernel. Signed-off-by: Blaise Boscaccy Acked-by: Song Liu Acked-by: Paul Moore --- include

[PATCH v6 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-07 Thread Blaise Boscaccy
: Blaise Boscaccy --- .../selftests/bpf/prog_tests/kernel_flag.c| 43 +++ .../selftests/bpf/progs/test_kernel_flag.c| 28 2 files changed, 71 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/kernel_flag.c create mode 100644 tools/testing

[PATCH v6 bpf-next 1/2] security: Propagate caller information in bpf hooks

2025-03-07 Thread Blaise Boscaccy
, by simply passing a boolean flag indicating whether or not the call originated in the kernel, in any hook that contains a bpf_attr struct that corresponds to a subcommand that may be called from the kernel. Signed-off-by: Blaise Boscaccy Acked-by: Song Liu Acked-by: Paul Moore --- include

[PATCH v6 bpf-next 0/2] security: Propagate caller information in bpf hooks

2025-03-07 Thread Blaise Boscaccy
bpf/20250228165322.3121535-1-bbosca...@linux.microsoft.com/ - v1 https://lore.kernel.org/bpf/20250226003055.1654837-1-bbosca...@linux.microsoft.com/ Blaise Boscaccy (2): security: Propagate caller information in bpf hooks selftests/bpf: Add a kernel flag test for LSM bpf hook include/linux/l

[PATCH v5 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook

2025-03-07 Thread Blaise Boscaccy
: Blaise Boscaccy --- .../selftests/bpf/prog_tests/kernel_flag.c| 43 +++ .../selftests/bpf/progs/test_kernel_flag.c| 32 ++ 2 files changed, 75 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/kernel_flag.c create mode 100644 tools

[PATCH v5 bpf-next 1/2] security: Propagate caller information in bpf hooks

2025-03-07 Thread Blaise Boscaccy
, by simply passing a boolean flag indicating whether or not the call originated in the kernel, in any hook that contains a bpf_attr struct that corresponds to a subcommand that may be called from the kernel. Signed-off-by: Blaise Boscaccy Acked-by: Song Liu Acked-by: Paul Moore --- include

[PATCH v5 bpf-next 0/2] security: Propagate caller information in bpf hooks

2025-03-07 Thread Blaise Boscaccy
3 https://lore.kernel.org/bpf/20250303222416.3909228-1-bbosca...@linux.microsoft.com/ - v2 https://lore.kernel.org/bpf/20250228165322.3121535-1-bbosca...@linux.microsoft.com/ - v1 https://lore.kernel.org/bpf/20250226003055.1654837-1-bbosca...@linux.microsoft.com/ Blaise Boscaccy (2): security: