Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH] selftests/landlock: Fix build of audit_test
@ 2025-06-05 21:44 Song Liu
  2025-06-06 10:42 ` Mickaël Salaün
  0 siblings, 1 reply; 2+ messages in thread
From: Song Liu @ 2025-06-05 21:44 UTC (permalink / raw)
  To: linux-security-module; +Cc: mic, gnoack, Song Liu

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>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-06 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox