Home
last modified time | relevance | path

Searched refs:uts_ns (Results 1 – 4 of 4) sorted by relevance

/kernel/
Dutsname.c32 struct uts_namespace *uts_ns; in create_uts_ns() local
34 uts_ns = kmem_cache_alloc(uts_ns_cache, GFP_KERNEL); in create_uts_ns()
35 if (uts_ns) in create_uts_ns()
36 kref_init(&uts_ns->kref); in create_uts_ns()
37 return uts_ns; in create_uts_ns()
130 ns = nsproxy->uts_ns; in utsns_get()
152 put_uts_ns(nsproxy->uts_ns); in utsns_install()
153 nsproxy->uts_ns = ns; in utsns_install()
Dnsproxy.c31 .uts_ns = &init_uts_ns,
77 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()
78 if (IS_ERR(new_nsp->uts_ns)) { in create_new_namespaces()
79 err = PTR_ERR(new_nsp->uts_ns); in create_new_namespaces()
120 if (new_nsp->uts_ns) in create_new_namespaces()
121 put_uts_ns(new_nsp->uts_ns); in create_new_namespaces()
173 if (ns->uts_ns) in free_nsproxy()
174 put_uts_ns(ns->uts_ns); in free_nsproxy()
Dutsname_sysctl.c20 struct uts_namespace *uts_ns; in get_uts() local
22 uts_ns = current->nsproxy->uts_ns; in get_uts()
23 which = (which - (char *)&init_uts_ns) + (char *)uts_ns; in get_uts()
Dsys.c1312 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
1365 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()