[PATCH] selftests/landlock: Fix build of audit_test
Mickaël Salaün
mic at digikod.net
Fri Jun 6 10:42:53 UTC 2025
On Thu, Jun 05, 2025 at 02:44:16PM -0700, Song Liu wrote:
> We are hitting build error on CentOS 9:
>
> audit_test.c:232:40: error: ‘O_CLOEXEC’ undeclared (...)
>
> Fix this by including fcntl.h.
>
> Signed-off-by: Song Liu <song at kernel.org>
Thanks, I'll merge it in my tree.
> ---
> tools/testing/selftests/landlock/audit_test.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/landlock/audit_test.c b/tools/testing/selftests/landlock/audit_test.c
> index cfc571afd0eb..46d02d49835a 100644
> --- a/tools/testing/selftests/landlock/audit_test.c
> +++ b/tools/testing/selftests/landlock/audit_test.c
> @@ -7,6 +7,7 @@
>
> #define _GNU_SOURCE
> #include <errno.h>
> +#include <fcntl.h>
> #include <limits.h>
> #include <linux/landlock.h>
> #include <pthread.h>
> --
> 2.47.1
>
>
More information about the Linux-security-module-archive
mailing list