nsfs.h 639 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __LINUX_NSFS_H
  3. #define __LINUX_NSFS_H
  4. #include <linux/ioctl.h>
  5. #define NSIO 0xb7
  6. /* Returns a file descriptor that refers to an owning user namespace */
  7. #define NS_GET_USERNS _IO(NSIO, 0x1)
  8. /* Returns a file descriptor that refers to a parent namespace */
  9. #define NS_GET_PARENT _IO(NSIO, 0x2)
  10. /* Returns the type of namespace (CLONE_NEW* value) referred to by
  11. file descriptor */
  12. #define NS_GET_NSTYPE _IO(NSIO, 0x3)
  13. /* Get owner UID (in the caller's user namespace) for a user namespace */
  14. #define NS_GET_OWNER_UID _IO(NSIO, 0x4)
  15. #endif /* __LINUX_NSFS_H */