In order to utilize the listmount() and statmount() extensions that allow us to call them on different namespaces we need a way to get the mnt namespace id from user space. Add an ioctl to nsfs that will allow us to extract the mnt namespace id in order to make these new extensions usable.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -15,5 +15,7 @@ · 14 unmodified lines | ||
| 15 | 15 | #define NS_GET_NSTYPE _IO(NSIO, 0x3) |
| 16 | 16 | /* Get owner UID (in the caller's user namespace) for a user namespace */ |
| 17 | 17 | #define NS_GET_OWNER_UID _IO(NSIO, 0x4) |
| 18 | +/* Get the id for a mount namespace */ | |
| 19 | +#define NS_GET_MNTNS_ID _IO(NSIO, 0x5) | |
| 18 | 20 | |
| 19 | 21 | #endif /* __LINUX_NSFS_H */ |