diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-10-25 13:41:12 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-10-25 13:41:12 +0200 |
| commit | c401a48c9943aa16d3a3daef0720fe9005474605 (patch) | |
| tree | f6af97bbd6612b48f8de6331a68f3b45a37f4568 /sys/linux/namespaces.txt | |
| parent | 2d4fab5ed156837d5ab91fe702c7a2c740c31060 (diff) | |
sys/linux: add ioctl_ns
Diffstat (limited to 'sys/linux/namespaces.txt')
| -rw-r--r-- | sys/linux/namespaces.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/linux/namespaces.txt b/sys/linux/namespaces.txt index 3c1a44b60..dfd56331f 100644 --- a/sys/linux/namespaces.txt +++ b/sys/linux/namespaces.txt @@ -2,6 +2,7 @@ # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. include <uapi/linux/sched.h> +include <uapi/linux/nsfs.h> resource fd_namespace[fd] @@ -10,6 +11,11 @@ setns(fd fd_namespace, type flags[ns_type]) syz_open_procfs$namespace(pid pid, file ptr[in, string[procfs_namespace_file]]) fd_namespace +ioctl$NS_GET_USERNS(fd fd_namespace, cmd const[NS_GET_USERNS], arg const[0]) +ioctl$NS_GET_PARENT(fd fd_namespace, cmd const[NS_GET_PARENT], arg const[0]) fd_namespace +ioctl$NS_GET_NSTYPE(fd fd_namespace, cmd const[NS_GET_NSTYPE], arg const[0]) +ioctl$NS_GET_OWNER_UID(fd fd_namespace, cmd const[NS_GET_OWNER_UID], arg ptr[out, uid]) + procfs_namespace_file = "ns/cgroup", "ns/ipc", "ns/mnt", "ns/net", "ns/pid", "ns/user", "ns/uts", "ns/pid_for_children" unshare_flags = CLONE_FILES, CLONE_FS, CLONE_NEWCGROUP, CLONE_NEWIPC, CLONE_NEWNET, CLONE_NEWNS, CLONE_NEWPID, CLONE_NEWUSER, CLONE_NEWUTS, CLONE_SYSVSEM, CLONE_THREAD, CLONE_SIGHAND, CLONE_VM |
