diff options
author | Romain Naour <romain.naour@smile.fr> | 2022-01-07 22:25:23 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-04-28 18:46:34 +0200 |
commit | 72d0c6b171ebe81fee15af4c996ae62ac67f3b2d (patch) | |
tree | 1ad361b403d4a9ee30f7d9efb405b443c06f3826 | |
parent | bba396d78ce4752b7446c014b5dfe9a521c870e0 (diff) | |
download | systemd-72d0c6b171ebe81fee15af4c996ae62ac67f3b2d.tar.gz |
missing-syscall: define MOVE_MOUNT_T_EMPTY_PATH if missing
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
(cherry picked from commit 608c3b0293cac3cbb037b2d15c0a0f1e247eb71e)
-rw-r--r-- | src/basic/missing_syscall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 8267b1a90c..793d111c55 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -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, |