Searched refs:uts_ns (Results 1 – 6 of 6) sorted by relevance
32 struct uts_namespace *uts_ns; in create_uts_ns() local34 uts_ns = kmem_cache_alloc(uts_ns_cache, GFP_KERNEL); in create_uts_ns()35 if (uts_ns) in create_uts_ns()36 refcount_set(&uts_ns->ns.count, 1); in create_uts_ns()37 return uts_ns; in create_uts_ns()127 ns = nsproxy->uts_ns; in utsns_get()150 put_uts_ns(nsproxy->uts_ns); in utsns_install()151 nsproxy->uts_ns = ns; in utsns_install()
20 struct uts_namespace *uts_ns; in get_uts() local22 uts_ns = current->nsproxy->uts_ns; in get_uts()23 which = (which - (char *)&init_uts_ns) + (char *)uts_ns; in get_uts()
34 .uts_ns = &init_uts_ns,84 new_nsp->uts_ns = copy_utsname(flags, user_ns, tsk->nsproxy->uts_ns); in create_new_namespaces()85 if (IS_ERR(new_nsp->uts_ns)) { in create_new_namespaces()86 err = PTR_ERR(new_nsp->uts_ns); in create_new_namespaces()137 if (new_nsp->uts_ns) in create_new_namespaces()138 put_uts_ns(new_nsp->uts_ns); in create_new_namespaces()192 if (ns->uts_ns) in free_nsproxy()193 put_uts_ns(ns->uts_ns); in free_nsproxy()428 ret = validate_ns(nsset, &nsp->uts_ns->ns); in validate_nsset()
1360 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()1413 if (!ns_capable(current->nsproxy->uts_ns->user_ns, CAP_SYS_ADMIN)) in SYSCALL_DEFINE2()
33 struct uts_namespace *uts_ns; member
81 return ¤t->nsproxy->uts_ns->name; in utsname()