Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __LINUX_NSFS_H
0003 #define __LINUX_NSFS_H
0004 
0005 #include <linux/ioctl.h>
0006 
0007 #define NSIO    0xb7
0008 
0009 /* Returns a file descriptor that refers to an owning user namespace */
0010 #define NS_GET_USERNS       _IO(NSIO, 0x1)
0011 /* Returns a file descriptor that refers to a parent namespace */
0012 #define NS_GET_PARENT       _IO(NSIO, 0x2)
0013 /* Returns the type of namespace (CLONE_NEW* value) referred to by
0014    file descriptor */
0015 #define NS_GET_NSTYPE       _IO(NSIO, 0x3)
0016 /* Get owner UID (in the caller's user namespace) for a user namespace */
0017 #define NS_GET_OWNER_UID    _IO(NSIO, 0x4)
0018 
0019 #endif /* __LINUX_NSFS_H */