[glibc] Add OPEN_TREE_NAMESPACE and FSMOUNT_NAMESPACE to sys/mount.h
Adhemerval Zanella via Glibc-cvs <[email protected]> Mon, 6 Jul 2026 13:48:08 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e3146fd86889143066eb2bf8d3320490262d8a0 commit 3e3146fd86889143066eb2bf8d3320490262d8a0 Author: Adhemerval Zanella <[email protected]> Date: Fri Jul 3 11:46:33 2026 -0300 Add OPEN_TREE_NAMESPACE and FSMOUNT_NAMESPACE to sys/mount.h Add OPEN_TREE_NAMESPACE (commit 9b8a0ba68246a61d903ce62c35c303b1501df28b, Linux 7.0) and FSMOUNT_NAMESPACE (commit 5e8969bd192712419aae511dd5ba26855c2c78db, Linux 7.1). Diff: --- sysdeps/unix/sysv/linux/sys/mount.h | 4 ++++ sysdeps/unix/sysv/linux/tst-mount-consts.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index 0c5ebed33a..65636a21a0 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. */ @@ -267,6 +269,8 @@ enum fsconfig_command #ifndef OPEN_TREE_CLONE # define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */ #endif +#define OPEN_TREE_NAMESPACE (1 << 1) /* Clone the target tree into a new mount + namespace */ #ifndef O_CLOEXEC # include <bits/cloexec.h> # define O_CLOEXEC __O_CLOEXEC diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py index 423a76c282..082ad51735 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',