[LTP] [RFC PATCH 1/1] lapi/fsmount.h: Update MOVE_MOUNT__MASK

Petr Vorel pvorel@suse.cz
Fri Feb 21 11:45:15 CET 2025


Kernel commit 6ac392815628 which added MOVE_MOUNT_BENEATH also updated
MOVE_MOUNT__MASK. Although LTP don't use MOVE_MOUNT__MASK, it's probably
better to keep it sync. Other option would be to remove it.

Fixes: 606ca42e27 ("move_mount03: check allow to mount beneath top mount")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 include/lapi/fsmount.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/lapi/fsmount.h b/include/lapi/fsmount.h
index 3b9d7bdbf2..1783272a00 100644
--- a/include/lapi/fsmount.h
+++ b/include/lapi/fsmount.h
@@ -139,7 +139,7 @@ static inline int mount_setattr(int dirfd, const char *from_pathname, unsigned i
 #define MOVE_MOUNT_T_SYMLINKS		0x00000010 /* Follow symlinks on to path */
 #define MOVE_MOUNT_T_AUTOMOUNTS		0x00000020 /* Follow automounts on to path */
 #define MOVE_MOUNT_T_EMPTY_PATH		0x00000040 /* Empty to path permitted */
-#define MOVE_MOUNT__MASK		0x00000077
+#define MOVE_MOUNT__MASK		0x00000377
 
 /*
  * fsopen() flags.
-- 
2.47.2



More information about the ltp mailing list