]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing-syscall: define MOVE_MOUNT_T_EMPTY_PATH if missing
authorRomain Naour <romain.naour@smile.fr>
Fri, 7 Jan 2022 21:25:23 +0000 (22:25 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Mar 2022 07:37:59 +0000 (16:37 +0900)
MOVE_MOUNT_T_EMPTY_PATH has been added to systemd 250 by [1]
but it's defined in kernel headers since version 5.2.

[1] c7bf079bbc19e3b409acc0c7acc3e14749211fe2

src/basic/missing_syscall.h

index 8267b1a90c1df2caa336f43d787ba9214c9a3db5..793d111c55c1c30b6b86a51983d781a8fd264307 100644 (file)
@@ -569,6 +569,10 @@ static inline int missing_open_tree(
 #define MOVE_MOUNT_F_EMPTY_PATH 0x00000004 /* Empty from path permitted */
 #endif
 
+#ifndef MOVE_MOUNT_T_EMPTY_PATH
+#define MOVE_MOUNT_T_EMPTY_PATH 0x00000040 /* Empty to path permitted */
+#endif
+
 static inline int missing_move_mount(
                 int from_dfd,
                 const char *from_pathname,