• Home
  • Raw
  • Download

Lines Matching refs:tsk

68 	struct task_struct *tsk, struct user_namespace *user_ns,  in create_new_namespaces()  argument
78 new_nsp->mnt_ns = copy_mnt_ns(flags, tsk->nsproxy->mnt_ns, user_ns, new_fs); in create_new_namespaces()
84 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()
90 new_nsp->ipc_ns = copy_ipcs(flags, user_ns, tsk->nsproxy->ipc_ns); in create_new_namespaces()
97 copy_pid_ns(flags, user_ns, tsk->nsproxy->pid_ns_for_children); in create_new_namespaces()
104 tsk->nsproxy->cgroup_ns); in create_new_namespaces()
110 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces()
117 tsk->nsproxy->time_ns_for_children); in create_new_namespaces()
122 new_nsp->time_ns = get_time_ns(tsk->nsproxy->time_ns); in create_new_namespaces()
151 int copy_namespaces(unsigned long flags, struct task_struct *tsk) in copy_namespaces() argument
153 struct nsproxy *old_ns = tsk->nsproxy; in copy_namespaces()
154 struct user_namespace *user_ns = task_cred_xxx(tsk, user_ns); in copy_namespaces()
179 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()
183 ret = timens_on_fork(new_ns, tsk); in copy_namespaces()
189 tsk->nsproxy = new_ns; in copy_namespaces()
368 struct task_struct *tsk; in validate_nsset() local
372 tsk = pid_task(pid, PIDTYPE_PID); in validate_nsset()
373 if (!tsk) { in validate_nsset()
378 if (!ptrace_may_access(tsk, PTRACE_MODE_READ_REALCREDS)) { in validate_nsset()
383 task_lock(tsk); in validate_nsset()
384 nsp = tsk->nsproxy; in validate_nsset()
387 task_unlock(tsk); in validate_nsset()
395 pid_ns = task_active_pid_ns(tsk); in validate_nsset()
407 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()