Searched refs:unshare_flags (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/include/linux/ |
D | user_namespace.h | 120 extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred); 155 static inline int unshare_userns(unsigned long unshare_flags, in unshare_userns() argument 158 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
|
D | fdtable.h | 127 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
|
D | syscalls.h | 601 asmlinkage long sys_unshare(unsigned long unshare_flags); 1268 int ksys_unshare(unsigned long unshare_flags);
|
/kernel/linux/linux-5.10/kernel/ |
D | fork.c | 2855 static int check_unshare_flags(unsigned long unshare_flags) in check_unshare_flags() argument 2857 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND| in check_unshare_flags() 2869 if (unshare_flags & (CLONE_THREAD | CLONE_SIGHAND | CLONE_VM)) { in check_unshare_flags() 2873 if (unshare_flags & (CLONE_SIGHAND | CLONE_VM)) { in check_unshare_flags() 2877 if (unshare_flags & CLONE_VM) { in check_unshare_flags() 2888 static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp) in unshare_fs() argument 2892 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs() 2909 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument 2915 if ((unshare_flags & CLONE_FILES) && in unshare_fd() 2933 int ksys_unshare(unsigned long unshare_flags) in ksys_unshare() argument [all …]
|
D | nsproxy.c | 216 int unshare_nsproxy_namespaces(unsigned long unshare_flags, in unshare_nsproxy_namespaces() argument 222 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces() 231 *new_nsp = create_new_namespaces(unshare_flags, current, user_ns, in unshare_nsproxy_namespaces()
|
D | user_namespace.c | 155 int unshare_userns(unsigned long unshare_flags, struct cred **new_cred) in unshare_userns() argument 160 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns()
|