aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2025-06-05 14:44:16 -0700
committerMickaël Salaün <mic@digikod.net>2025-06-19 13:55:40 +0200
commitdc58130bc38f09b162aa3b216f8b8f1e0a56127b (patch)
tree397572028660625faec0bdb5a745e54656e542a8
parentselftests/landlock: Fix readlink check (diff)
downloadwireguard-linux-dc58130bc38f09b162aa3b216f8b8f1e0a56127b.tar.xz
wireguard-linux-dc58130bc38f09b162aa3b216f8b8f1e0a56127b.zip
selftests/landlock: Fix build of audit_test
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> Link: https://lore.kernel.org/r/20250605214416.1885878-1-song@kernel.org Fixes: 6b4566400a29 ("selftests/landlock: Add PID tests for audit records") Signed-off-by: Mickaël Salaün <mic@digikod.net>
-rw-r--r--tools/testing/selftests/landlock/audit_test.c1
1 files changed, 1 insertions, 0 deletions
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>