22 lines
532 B
Diff
22 lines
532 B
Diff
--- a/src/util-landlock.c
|
|
+++ b/src/util-landlock.c
|
|
@@ -40,6 +40,18 @@
|
|
|
|
#include <linux/landlock.h>
|
|
|
|
+#ifndef __NR_landlock_create_ruleset
|
|
+#define __NR_landlock_create_ruleset 444
|
|
+#endif
|
|
+
|
|
+#ifndef __NR_landlock_add_rule
|
|
+#define __NR_landlock_add_rule 445
|
|
+#endif
|
|
+
|
|
+#ifndef __NR_landlock_restrict_self
|
|
+#define __NR_landlock_restrict_self 446
|
|
+#endif
|
|
+
|
|
#ifndef landlock_create_ruleset
|
|
static inline int landlock_create_ruleset(
|
|
const struct landlock_ruleset_attr *const attr, const size_t size, const __u32 flags)
|