[PATCH] selftests/landlock: Fix makefile header list
Mickaël Salaün
mic at digikod.net
Wed Nov 12 17:03:13 UTC 2025
On Mon, Oct 27, 2025 at 02:14:40AM +0100, Matthieu Buffet wrote:
> Make all headers part of make's dependencies computations.
> Otherwise, updating audit.h, common.h, scoped_base_variants.h,
> scoped_common.h, scoped_multiple_domain_variants.h, or wrappers.h,
> re-running make and running selftests could lead to testing stale headers.
>
> Fixes: 6a500b22971c ("selftests/landlock: Add tests for audit flags and domain IDs")
> Fixes: fefcf0f7cf47 ("selftests/landlock: Test abstract UNIX socket scoping")
> Fixes: 5147779d5e1b ("selftests/landlock: Add wrappers.h")
> Signed-off-by: Matthieu Buffet <matthieu at buffet.re>
> ---
> I was troubleshooting why some auditing selftests kept failing at random
> (recvfrom() sometimes returning EAGAIN in audit_recv()). I did not
> troubleshoot it yet, but I did find this first step while trying to edit
> audit.h in vain:
Thanks! I'll merge this patch in -next.
>
> tools/testing/selftests/landlock/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/landlock/Makefile b/tools/testing/selftests/landlock/Makefile
> index a3f449914bf9..044b83bde16e 100644
> --- a/tools/testing/selftests/landlock/Makefile
> +++ b/tools/testing/selftests/landlock/Makefile
> @@ -4,7 +4,7 @@
>
> CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
>
> -LOCAL_HDRS += common.h
> +LOCAL_HDRS += $(wildcard *.h)
>
> src_test := $(wildcard *_test.c)
>
>
> base-commit: 6dde339a3df80a57ac3d780d8cfc14d9262e2acd
> --
> 2.47.2
>
>
More information about the Linux-security-module-archive
mailing list