add default LANDLOCK_ACCESS_FS_REFER define for Ubuntu (fix #420)

This commit is contained in:
Yves Rutschle 2024-01-06 11:56:57 +01:00
parent 39184b5622
commit 4dfb4d300a

View File

@ -30,6 +30,10 @@
#include <sys/prctl.h>
#include <sys/syscall.h>
/* 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