Home
last modified time | relevance | path

Searched refs:unshare_flags (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/kernel/
Dfork.c3065 static int check_unshare_flags(unsigned long unshare_flags) in check_unshare_flags() argument
3067 if (unshare_flags & ~(CLONE_THREAD|CLONE_FS|CLONE_NEWNS|CLONE_SIGHAND| in check_unshare_flags()
3079 if (unshare_flags & (CLONE_THREAD | CLONE_SIGHAND | CLONE_VM)) { in check_unshare_flags()
3083 if (unshare_flags & (CLONE_SIGHAND | CLONE_VM)) { in check_unshare_flags()
3087 if (unshare_flags & CLONE_VM) { in check_unshare_flags()
3098 static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp) in unshare_fs() argument
3102 if (!(unshare_flags & CLONE_FS) || !fs) in unshare_fs()
3119 int unshare_fd(unsigned long unshare_flags, unsigned int max_fds, in unshare_fd() argument
3125 if ((unshare_flags & CLONE_FILES) && in unshare_fd()
3143 int ksys_unshare(unsigned long unshare_flags) in ksys_unshare() argument
[all …]
Dnsproxy.c211 int unshare_nsproxy_namespaces(unsigned long unshare_flags, in unshare_nsproxy_namespaces() argument
217 if (!(unshare_flags & (CLONE_NEWNS | CLONE_NEWUTS | CLONE_NEWIPC | in unshare_nsproxy_namespaces()
226 *new_nsp = create_new_namespaces(unshare_flags, current, user_ns, in unshare_nsproxy_namespaces()
Duser_namespace.c176 int unshare_userns(unsigned long unshare_flags, struct cred **new_cred) in unshare_userns() argument
181 if (!(unshare_flags & CLONE_NEWUSER)) in unshare_userns()
/linux-6.1.9/include/linux/
Duser_namespace.h159 extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred);
194 static inline int unshare_userns(unsigned long unshare_flags, in unshare_userns() argument
197 if (unshare_flags & CLONE_NEWUSER) in unshare_userns()
Dfdtable.h129 extern int unshare_fd(unsigned long unshare_flags, unsigned int max_fds,
Dsyscalls.h608 asmlinkage long sys_unshare(unsigned long unshare_flags);
1291 int ksys_unshare(unsigned long unshare_flags);