1From 16c132a6a0389e0eaea70c4ad95dbfd1637ec5ba Mon Sep 17 00:00:00 2001
2From: Romain Naour <romain.naour@smile.fr>
3Date: Fri, 7 Jan 2022 22:25:23 +0100
4Subject: [PATCH] missing-syscall: define MOVE_MOUNT_T_EMPTY_PATH if missing
5
6MOVE_MOUNT_T_EMPTY_PATH has been added to systemd 250 by [1]
7but it's defined in kernel headers since version 5.2.
8
9[1] c7bf079bbc19e3b409acc0c7acc3e14749211fe2
10
11Signed-off-by: Romain Naour <romain.naour@smile.fr>
12---
13 src/basic/missing_syscall.h | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
17index 8267b1a90c..793d111c55 100644
18--- a/src/basic/missing_syscall.h
19+++ b/src/basic/missing_syscall.h
20@@ -569,6 +569,10 @@ static inline int missing_open_tree(
21 #define MOVE_MOUNT_F_EMPTY_PATH 0x00000004 /* Empty from path permitted */
22 #endif
23
24+#ifndef MOVE_MOUNT_T_EMPTY_PATH
25+#define MOVE_MOUNT_T_EMPTY_PATH 0x00000040 /* Empty to path permitted */
26+#endif
27+
28 static inline int missing_move_mount(
29                 int from_dfd,
30                 const char *from_pathname,
31--
322.31.1
33
34