1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26786741dSAndrey Vagin #ifndef __LINUX_NSFS_H 36786741dSAndrey Vagin #define __LINUX_NSFS_H 46786741dSAndrey Vagin 56786741dSAndrey Vagin #include <linux/ioctl.h> 66786741dSAndrey Vagin 76786741dSAndrey Vagin #define NSIO 0xb7 86786741dSAndrey Vagin 96786741dSAndrey Vagin /* Returns a file descriptor that refers to an owning user namespace */ 106786741dSAndrey Vagin #define NS_GET_USERNS _IO(NSIO, 0x1) 11a7306ed8SAndrey Vagin /* Returns a file descriptor that refers to a parent namespace */ 12a7306ed8SAndrey Vagin #define NS_GET_PARENT _IO(NSIO, 0x2) 13e5ff5ce6SMichael Kerrisk (man-pages) /* Returns the type of namespace (CLONE_NEW* value) referred to by 14e5ff5ce6SMichael Kerrisk (man-pages) file descriptor */ 15e5ff5ce6SMichael Kerrisk (man-pages) #define NS_GET_NSTYPE _IO(NSIO, 0x3) 16d95fa3c7SMichael Kerrisk (man-pages) /* Get owner UID (in the caller's user namespace) for a user namespace */ 17d95fa3c7SMichael Kerrisk (man-pages) #define NS_GET_OWNER_UID _IO(NSIO, 0x4) 186786741dSAndrey Vagin 196786741dSAndrey Vagin #endif /* __LINUX_NSFS_H */ 20