diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-06-06 11:45:07 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-06-11 11:59:08 +0200 |
| commit | 6a9e2fb1bab53b54d02714a2ee3c6612d19629ce (patch) | |
| tree | d2cc44509e4446deb30d4569dba12e6af1e40d47 /include/uapi | |
| parent | Linux 6.16-rc1 (diff) | |
| download | linux-6a9e2fb1bab53b54d02714a2ee3c6612d19629ce.tar.gz linux-6a9e2fb1bab53b54d02714a2ee3c6612d19629ce.zip | |
nsfs: move root inode number to uapi
Userspace relies on the root inode numbers to identify the initial
namespaces. That's already a hard dependency. So we cannot change that
anymore. Move the initial inode numbers to a public header.
Link: https://github.com/systemd/systemd/commit/d293fade24b34ccc2f5716b0ff5513e9533cf0c4
Link: https://lore.kernel.org/20250606-work-nsfs-v1-1-b8749c9a8844@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/nsfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/nsfs.h b/include/uapi/linux/nsfs.h index 34127653fd00..6683e7ca3996 100644 --- a/include/uapi/linux/nsfs.h +++ b/include/uapi/linux/nsfs.h @@ -42,4 +42,13 @@ struct mnt_ns_info { /* Get previous namespace. */ #define NS_MNT_GET_PREV _IOR(NSIO, 12, struct mnt_ns_info) +enum init_ns_ino { + IPC_NS_INIT_INO = 0xEFFFFFFFU, + UTS_NS_INIT_INO = 0xEFFFFFFEU, + USER_NS_INIT_INO = 0xEFFFFFFDU, + PID_NS_INIT_INO = 0xEFFFFFFCU, + CGROUP_NS_INIT_INO = 0xEFFFFFFBU, + TIME_NS_INIT_INO = 0xEFFFFFFAU, +}; + #endif /* __LINUX_NSFS_H */ |
