From 4dfb4d300ae1087c061d9844cafa79a403fa05ce Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Sat, 6 Jan 2024 11:56:57 +0100 Subject: [PATCH] add default LANDLOCK_ACCESS_FS_REFER define for Ubuntu (fix #420) --- landlock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/landlock.c b/landlock.c index 6cdeff9..20e7961 100644 --- a/landlock.c +++ b/landlock.c @@ -30,6 +30,10 @@ #include #include +/* Ubuntu 22.04 does not have this symbol */ +#ifndef LANDLOCK_ACCESS_FS_REFER +#define LANDLOCK_ACCESS_FS_REFER (1ULL << 13) +#endif #ifndef landlock_create_ruleset static inline int