From: "Mickaël Salaün" <mic@digikod.net>
To: Song Liu <song@kernel.org>
Cc: linux-security-module@vger.kernel.org, gnoack@google.com
Subject: Re: [PATCH] selftests/landlock: Fix build of audit_test
Date: Fri, 6 Jun 2025 12:42:53 +0200 [thread overview]
Message-ID: <20250606.xooch5pieChi@digikod.net> (raw)
In-Reply-To: <20250605214416.1885878-1-song@kernel.org>
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@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
>
>
prev parent reply other threads:[~2025-06-06 10:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 21:44 [PATCH] selftests/landlock: Fix build of audit_test Song Liu
2025-06-06 10:42 ` Mickaël Salaün [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=20250606.xooch5pieChi@digikod.net \
--to=mic@digikod.net \
--cc=gnoack@google.com \
--cc=linux-security-module@vger.kernel.org \
--cc=song@kernel.org \
/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