License cleanup: add SPDX license identifier to uapi header files with no license
[linux/fpc-iii.git] / include / uapi / linux / nsfs.h
bloba0c8552b64ee04375cf9409b3a48f1b5230bc11e
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __LINUX_NSFS_H
3 #define __LINUX_NSFS_H
5 #include <linux/ioctl.h>
7 #define NSIO 0xb7
9 /* Returns a file descriptor that refers to an owning user namespace */
10 #define NS_GET_USERNS _IO(NSIO, 0x1)
11 /* Returns a file descriptor that refers to a parent namespace */
12 #define NS_GET_PARENT _IO(NSIO, 0x2)
13 /* Returns the type of namespace (CLONE_NEW* value) referred to by
14 file descriptor */
15 #define NS_GET_NSTYPE _IO(NSIO, 0x3)
16 /* Get owner UID (in the caller's user namespace) for a user namespace */
17 #define NS_GET_OWNER_UID _IO(NSIO, 0x4)
19 #endif /* __LINUX_NSFS_H */