Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: update nsfs.h uapi header

Update the nsfs.h tools header to the uapi/nsfs.h header so we can rely
on it in the selftests.

Signed-off-by: Christian Brauner <brauner@kernel.org>

+15 -2
+15 -2
tools/include/uapi/linux/nsfs.h
··· 16 16 #define NS_GET_NSTYPE _IO(NSIO, 0x3) 17 17 /* Get owner UID (in the caller's user namespace) for a user namespace */ 18 18 #define NS_GET_OWNER_UID _IO(NSIO, 0x4) 19 - /* Get the id for a mount namespace */ 20 - #define NS_GET_MNTNS_ID _IOR(NSIO, 0x5, __u64) 21 19 /* Translate pid from target pid namespace into the caller's pid namespace. */ 22 20 #define NS_GET_PID_FROM_PIDNS _IOR(NSIO, 0x6, int) 23 21 /* Return thread-group leader id of pid in the callers pid namespace. */ ··· 39 41 #define NS_MNT_GET_NEXT _IOR(NSIO, 11, struct mnt_ns_info) 40 42 /* Get previous namespace. */ 41 43 #define NS_MNT_GET_PREV _IOR(NSIO, 12, struct mnt_ns_info) 44 + 45 + /* Retrieve namespace identifiers. */ 46 + #define NS_GET_MNTNS_ID _IOR(NSIO, 5, __u64) 47 + #define NS_GET_ID _IOR(NSIO, 13, __u64) 48 + 49 + enum init_ns_ino { 50 + IPC_NS_INIT_INO = 0xEFFFFFFFU, 51 + UTS_NS_INIT_INO = 0xEFFFFFFEU, 52 + USER_NS_INIT_INO = 0xEFFFFFFDU, 53 + PID_NS_INIT_INO = 0xEFFFFFFCU, 54 + CGROUP_NS_INIT_INO = 0xEFFFFFFBU, 55 + TIME_NS_INIT_INO = 0xEFFFFFFAU, 56 + NET_NS_INIT_INO = 0xEFFFFFF9U, 57 + MNT_NS_INIT_INO = 0xEFFFFFF8U, 58 + }; 42 59 43 60 #endif /* __LINUX_NSFS_H */