Lines Matching defs:ns
70 struct user_namespace *ns = targ_ns;
78 if (ns == cred->user_ns)
85 if (ns->level <= cred->user_ns->level)
92 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid))
96 * If you have a capability in a parent user ns, then you have
99 ns = ns->parent;
334 struct user_namespace *ns;
341 for (ns = current_user_ns();; ns = ns->parent) {
342 if (from_kuid(ns, kroot) == 0)
344 if (ns == &init_user_ns)
426 /* If the root kuid maps to a valid uid in current ns, then return