• Home
  • Raw
  • Download

Lines Matching refs:ns

188 void free_nsproxy(struct nsproxy *ns)  in free_nsproxy()  argument
190 if (ns->mnt_ns) in free_nsproxy()
191 put_mnt_ns(ns->mnt_ns); in free_nsproxy()
192 if (ns->uts_ns) in free_nsproxy()
193 put_uts_ns(ns->uts_ns); in free_nsproxy()
194 if (ns->ipc_ns) in free_nsproxy()
195 put_ipc_ns(ns->ipc_ns); in free_nsproxy()
196 if (ns->pid_ns_for_children) in free_nsproxy()
197 put_pid_ns(ns->pid_ns_for_children); in free_nsproxy()
198 if (ns->time_ns) in free_nsproxy()
199 put_time_ns(ns->time_ns); in free_nsproxy()
200 if (ns->time_ns_for_children) in free_nsproxy()
201 put_time_ns(ns->time_ns_for_children); in free_nsproxy()
202 put_cgroup_ns(ns->cgroup_ns); in free_nsproxy()
203 put_net(ns->net_ns); in free_nsproxy()
204 kmem_cache_free(nsproxy_cachep, ns); in free_nsproxy()
239 struct nsproxy *ns; in switch_task_namespaces() local
244 ns = p->nsproxy; in switch_task_namespaces()
248 if (ns) in switch_task_namespaces()
249 put_nsproxy(ns); in switch_task_namespaces()
344 static inline int validate_ns(struct nsset *nsset, struct ns_common *ns) in validate_ns() argument
346 return ns->ops->install(nsset, ns); in validate_ns()
414 ret = validate_ns(nsset, &user_ns->ns); in validate_nsset()
428 ret = validate_ns(nsset, &nsp->uts_ns->ns); in validate_nsset()
436 ret = validate_ns(nsset, &nsp->ipc_ns->ns); in validate_nsset()
444 ret = validate_ns(nsset, &pid_ns->ns); in validate_nsset()
452 ret = validate_ns(nsset, &nsp->cgroup_ns->ns); in validate_nsset()
460 ret = validate_ns(nsset, &nsp->net_ns->ns); in validate_nsset()
468 ret = validate_ns(nsset, &nsp->time_ns->ns); in validate_nsset()
530 struct ns_common *ns = NULL; in SYSCALL_DEFINE2() local
539 ns = get_proc_ns(file_inode(file)); in SYSCALL_DEFINE2()
540 if (flags && (ns->ops->type != flags)) in SYSCALL_DEFINE2()
542 flags = ns->ops->type; in SYSCALL_DEFINE2()
556 err = validate_ns(&nsset, ns); in SYSCALL_DEFINE2()