Lines Matching refs:user_ns
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()
103 new_nsp->cgroup_ns = copy_cgroup_ns(flags, user_ns, in create_new_namespaces()
110 new_nsp->net_ns = copy_net_ns(flags, user_ns, tsk->nsproxy->net_ns); in create_new_namespaces()
116 new_nsp->time_ns_for_children = copy_time_ns(flags, user_ns, in create_new_namespaces()
154 struct user_namespace *user_ns = task_cred_xxx(tsk, user_ns); in copy_namespaces() local
165 } else if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in copy_namespaces()
179 new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); in copy_namespaces()
216 struct user_namespace *user_ns; in unshare_nsproxy_namespaces() local
224 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
225 if (!ns_capable(user_ns, CAP_SYS_ADMIN)) in unshare_nsproxy_namespaces()
228 *new_nsp = create_new_namespaces(unshare_flags, current, user_ns, in unshare_nsproxy_namespaces()
379 struct user_namespace *user_ns = NULL; in validate_nsset() local
421 user_ns = get_user_ns(__task_cred(tsk)->user_ns); in validate_nsset()
433 ret = validate_ns(nsset, &user_ns->ns); in validate_nsset()
498 put_user_ns(user_ns); in validate_nsset()