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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -42,4 +42,13 @@ struct mnt_ns_info { · 41 unmodified lines | |||
| 42 | /* Get previous namespace. */ | 42 | /* Get previous namespace. */ |
| 43 | #define NS_MNT_GET_PREV _IOR(NSIO, 12, struct mnt_ns_info) | 43 | #define NS_MNT_GET_PREV _IOR(NSIO, 12, struct mnt_ns_info) |
| 44 | 44 | ||
| 45 | enum init_ns_ino { | ||
| 46 | IPC_NS_INIT_INO = 0xEFFFFFFFU, | ||
| 47 | UTS_NS_INIT_INO = 0xEFFFFFFEU, | ||
| 48 | USER_NS_INIT_INO = 0xEFFFFFFDU, | ||
| 49 | PID_NS_INIT_INO = 0xEFFFFFFCU, | ||
| 50 | CGROUP_NS_INIT_INO = 0xEFFFFFFBU, | ||
| 51 | TIME_NS_INIT_INO = 0xEFFFFFFAU, | ||
| 52 | }; | ||
| 53 | |||
| 45 | #endif /* __LINUX_NSFS_H */ | 54 | #endif /* __LINUX_NSFS_H */ |