Lines Matching refs:tsk
60 struct task_struct *tsk, struct user_namespace *user_ns, in create_new_namespaces() argument
70 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
76 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()
82 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns); in create_new_namespaces()
89 copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns_for_children); in create_new_namespaces()
95 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces()
124 int copy_namespaces(unsigned long flags, struct task_struct *tsk) in copy_namespaces() argument
126 struct nsproxy *old_ns = tsk->nsproxy; in copy_namespaces()
127 struct user_namespace *user_ns = task_cred_xxx(tsk, user_ns); in copy_namespaces()
150 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()
154 tsk->nsproxy = new_ns; in copy_namespaces()
223 struct task_struct *tsk = current; in SYSCALL_DEFINE2() local
238 new_nsproxy = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); in SYSCALL_DEFINE2()
249 switch_task_namespaces(tsk, new_nsproxy); in SYSCALL_DEFINE2()