Searched refs:new_nsp (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/kernel/ |
H A D | nsproxy.c | 63 struct nsproxy *new_nsp; create_new_namespaces() local 66 new_nsp = create_nsproxy(); create_new_namespaces() 67 if (!new_nsp) create_new_namespaces() 70 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); create_new_namespaces() 71 if (IS_ERR(new_nsp->mnt_ns)) { create_new_namespaces() 72 err = PTR_ERR(new_nsp->mnt_ns); create_new_namespaces() 76 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); create_new_namespaces() 77 if (IS_ERR(new_nsp->uts_ns)) { create_new_namespaces() 78 err = PTR_ERR(new_nsp->uts_ns); create_new_namespaces() 82 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns); create_new_namespaces() 83 if (IS_ERR(new_nsp->ipc_ns)) { create_new_namespaces() 84 err = PTR_ERR(new_nsp->ipc_ns); create_new_namespaces() 88 new_nsp->pid_ns_for_children = create_new_namespaces() 90 if (IS_ERR(new_nsp->pid_ns_for_children)) { create_new_namespaces() 91 err = PTR_ERR(new_nsp->pid_ns_for_children); create_new_namespaces() 95 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); create_new_namespaces() 96 if (IS_ERR(new_nsp->net_ns)) { create_new_namespaces() 97 err = PTR_ERR(new_nsp->net_ns); create_new_namespaces() 101 return new_nsp; create_new_namespaces() 104 if (new_nsp->pid_ns_for_children) create_new_namespaces() 105 put_pid_ns(new_nsp->pid_ns_for_children); create_new_namespaces() 107 if (new_nsp->ipc_ns) create_new_namespaces() 108 put_ipc_ns(new_nsp->ipc_ns); create_new_namespaces() 110 if (new_nsp->uts_ns) create_new_namespaces() 111 put_uts_ns(new_nsp->uts_ns); create_new_namespaces() 113 if (new_nsp->mnt_ns) create_new_namespaces() 114 put_mnt_ns(new_nsp->mnt_ns); create_new_namespaces() 116 kmem_cache_free(nsproxy_cachep, new_nsp); create_new_namespaces() 177 struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs) unshare_nsproxy_namespaces() 190 *new_nsp = create_new_namespaces(unshare_flags, current, user_ns, unshare_nsproxy_namespaces() 192 if (IS_ERR(*new_nsp)) { unshare_nsproxy_namespaces() 193 err = PTR_ERR(*new_nsp); unshare_nsproxy_namespaces() 176 unshare_nsproxy_namespaces(unsigned long unshare_flags, struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs) unshare_nsproxy_namespaces() argument
|
Completed in 62 milliseconds