[PATCH 11/15] Add FSMOUNT_NAMESPACE from Linux 7.1 to sys/mount.h

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Jul 2 18:38:42 GMT 2026


It was added by commit 5e8969bd192712419aae511dd5ba26855c2c78db.
---
 sysdeps/unix/sysv/linux/sys/mount.h         | 2 ++
 sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
index 964ec971b7c..632c3a59d84 100644
--- a/sysdeps/unix/sysv/linux/sys/mount.h
+++ b/sysdeps/unix/sysv/linux/sys/mount.h
@@ -189,6 +189,8 @@ enum
 
 /* fsmount flags.  */
 #define FSMOUNT_CLOEXEC         0x00000001
+#define FSMOUNT_NAMESPACE       0x00000002 /* Create the mount in a new mount
+					      namespace.  */
 
 /* mount attributes used on fsmount.  */
 #define MOUNT_ATTR_RDONLY       0x00000001 /* Mount read-only.  */
diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py
index 423a76c282e..082ad51735f 100755
--- a/sysdeps/unix/sysv/linux/tst-mount-consts.py
+++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py
@@ -39,10 +39,10 @@ def main():
         sys.exit (77)
 
     linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc)
-    # Constants in glibc were updated to match Linux v6.17.  When glibc
+    # Constants in glibc were updated to match Linux v7.1.  When glibc
     # constants are updated this value should be updated to match the
     # released kernel version from which the constants were taken.
-    linux_version_glibc = (6, 17)
+    linux_version_glibc = (7, 1)
     def check(cte, exclude=None):
         return glibcextract.compare_macro_consts(
                 '#include <sys/mount.h>\n',
-- 
2.43.0



More information about the Libc-alpha mailing list